SlideShare a Scribd company logo
1 of 1
Download to read offline
Homework 1 - Generate vehicle plate numbers Assume a New York State vehicle plate number
consists of three uppercase, a dash, and four digits, for example: 0SK-2525, DVS-0006, etc. Your
task is to write a function that can randomly generate these strings in the above format. Please
complete this notebook on Colab, save it as .ipynb and submit that file to Blackboard. Task 1 (7
points) Please complete the new_license_plate( ) function below to return a random license plate
string that follows the valid New York State format as specified. You can only change the body of
the function using only basic types and features of Python that we have been looking at so far
(e.g. basic types, functions, loops, etc.) You may rely on the random module of Python to generate
random numbers. For your convenience, there's a small loop at the end that will generate 5
random license plates when you complete your function.

More Related Content

Similar to Homework 1 Generate vehicle plate numbers Assume a New Yor.pdf

Extra Credit Projects Microsoft Office Applications Sof.docx
Extra Credit Projects  Microsoft Office Applications Sof.docxExtra Credit Projects  Microsoft Office Applications Sof.docx
Extra Credit Projects Microsoft Office Applications Sof.docx
ssuser454af01
 
L lpic1-v3-103-1-pdf
L lpic1-v3-103-1-pdfL lpic1-v3-103-1-pdf
L lpic1-v3-103-1-pdf
hellojdr
 
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxCOMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
donnajames55
 
Computer architecture is made up of two main components the Instruct.docx
Computer architecture is made up of two main components the Instruct.docxComputer architecture is made up of two main components the Instruct.docx
Computer architecture is made up of two main components the Instruct.docx
brownliecarmella
 
IN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType Java file pr.pdf
IN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType  Java file pr.pdfIN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType  Java file pr.pdf
IN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType Java file pr.pdf
arkmuzikllc
 
How to solve misalignment lun netapp on linux servers by Ivan
How to solve misalignment lun netapp on linux servers by IvanHow to solve misalignment lun netapp on linux servers by Ivan
How to solve misalignment lun netapp on linux servers by Ivan
Ivan Silva
 

Similar to Homework 1 Generate vehicle plate numbers Assume a New Yor.pdf (20)

Sql interview questions
Sql interview questionsSql interview questions
Sql interview questions
 
Extra Credit Projects Microsoft Office Applications Sof.docx
Extra Credit Projects  Microsoft Office Applications Sof.docxExtra Credit Projects  Microsoft Office Applications Sof.docx
Extra Credit Projects Microsoft Office Applications Sof.docx
 
Code That Writes Code : Automatic Programming for NHibernate
Code That Writes Code : Automatic Programming for NHibernateCode That Writes Code : Automatic Programming for NHibernate
Code That Writes Code : Automatic Programming for NHibernate
 
L lpic1-v3-103-1-pdf
L lpic1-v3-103-1-pdfL lpic1-v3-103-1-pdf
L lpic1-v3-103-1-pdf
 
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxCOMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
 
Gsp 215 Effective Communication / snaptutorial.com
Gsp 215  Effective Communication / snaptutorial.comGsp 215  Effective Communication / snaptutorial.com
Gsp 215 Effective Communication / snaptutorial.com
 
Computer architecture is made up of two main components the Instruct.docx
Computer architecture is made up of two main components the Instruct.docxComputer architecture is made up of two main components the Instruct.docx
Computer architecture is made up of two main components the Instruct.docx
 
Ruby DSL
Ruby DSLRuby DSL
Ruby DSL
 
Compiler Engineering Lab#5 : Symbol Table, Flex Tool
Compiler Engineering Lab#5 : Symbol Table, Flex ToolCompiler Engineering Lab#5 : Symbol Table, Flex Tool
Compiler Engineering Lab#5 : Symbol Table, Flex Tool
 
IN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType Java file pr.pdf
IN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType  Java file pr.pdfIN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType  Java file pr.pdf
IN JAVA BJP5 Exercise 6.19 leetSpeak LanguageType Java file pr.pdf
 
Gsp 215 Enthusiastic Study / snaptutorial.com
Gsp 215 Enthusiastic Study / snaptutorial.comGsp 215 Enthusiastic Study / snaptutorial.com
Gsp 215 Enthusiastic Study / snaptutorial.com
 
GSP 215 Technology levels--snaptutorial.com
GSP 215 Technology levels--snaptutorial.comGSP 215 Technology levels--snaptutorial.com
GSP 215 Technology levels--snaptutorial.com
 
Gsp 215 Massive Success / snaptutorial.com
Gsp 215  Massive Success / snaptutorial.comGsp 215  Massive Success / snaptutorial.com
Gsp 215 Massive Success / snaptutorial.com
 
GSP 215 Education Organization - snaptutorial.com
GSP 215  Education Organization - snaptutorial.comGSP 215  Education Organization - snaptutorial.com
GSP 215 Education Organization - snaptutorial.com
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Exciting JavaScript - Part II
Exciting JavaScript - Part IIExciting JavaScript - Part II
Exciting JavaScript - Part II
 
RubyConf Bangladesh 2017 - Craft beautiful code with Ruby DSL
RubyConf Bangladesh 2017 - Craft beautiful code with Ruby DSLRubyConf Bangladesh 2017 - Craft beautiful code with Ruby DSL
RubyConf Bangladesh 2017 - Craft beautiful code with Ruby DSL
 
How to solve misalignment lun netapp on linux servers by Ivan
How to solve misalignment lun netapp on linux servers by IvanHow to solve misalignment lun netapp on linux servers by Ivan
How to solve misalignment lun netapp on linux servers by Ivan
 
GSP 215 Effective Communication - tutorialrank.com
GSP 215  Effective Communication - tutorialrank.comGSP 215  Effective Communication - tutorialrank.com
GSP 215 Effective Communication - tutorialrank.com
 
COBOL FOR FRESHER
COBOL FOR FRESHERCOBOL FOR FRESHER
COBOL FOR FRESHER
 

More from abyssiniaimpex1

14 You and your friends race to the gym after school and w.pdf
14 You and your friends race to the gym after school and w.pdf14 You and your friends race to the gym after school and w.pdf
14 You and your friends race to the gym after school and w.pdf
abyssiniaimpex1
 
Why the code is not running I didnt get any main function .pdf
Why the code is not running I didnt get any main function .pdfWhy the code is not running I didnt get any main function .pdf
Why the code is not running I didnt get any main function .pdf
abyssiniaimpex1
 
The Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdfThe Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdf
abyssiniaimpex1
 
1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf
abyssiniaimpex1
 
Hello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdfHello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdf
abyssiniaimpex1
 
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdfConceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
abyssiniaimpex1
 
El peligro de una sola historia Quiero resaltar que uno de .pdf
El peligro de una sola historia  Quiero resaltar que uno de .pdfEl peligro de una sola historia  Quiero resaltar que uno de .pdf
El peligro de una sola historia Quiero resaltar que uno de .pdf
abyssiniaimpex1
 

More from abyssiniaimpex1 (20)

Determine whether the following problem involves a permutati.pdf
Determine whether the following problem involves a permutati.pdfDetermine whether the following problem involves a permutati.pdf
Determine whether the following problem involves a permutati.pdf
 
3 Results from the National Health and Nutrition Examinatio.pdf
3 Results from the National Health and Nutrition Examinatio.pdf3 Results from the National Health and Nutrition Examinatio.pdf
3 Results from the National Health and Nutrition Examinatio.pdf
 
6 Diversity still plays a role of a tack on in the study .pdf
6 Diversity still plays a role of a tack on in the study .pdf6 Diversity still plays a role of a tack on in the study .pdf
6 Diversity still plays a role of a tack on in the study .pdf
 
14 You and your friends race to the gym after school and w.pdf
14 You and your friends race to the gym after school and w.pdf14 You and your friends race to the gym after school and w.pdf
14 You and your friends race to the gym after school and w.pdf
 
Why the code is not running I didnt get any main function .pdf
Why the code is not running I didnt get any main function .pdfWhy the code is not running I didnt get any main function .pdf
Why the code is not running I didnt get any main function .pdf
 
Uno de los miembros del comit Joanne Hader est exasperad.pdf
Uno de los miembros del comit Joanne Hader est exasperad.pdfUno de los miembros del comit Joanne Hader est exasperad.pdf
Uno de los miembros del comit Joanne Hader est exasperad.pdf
 
Using the following national income accounting data compute.pdf
Using the following national income accounting data compute.pdfUsing the following national income accounting data compute.pdf
Using the following national income accounting data compute.pdf
 
Which list all that apply of the common justifications of .pdf
Which list all that apply of the common justifications of .pdfWhich list all that apply of the common justifications of .pdf
Which list all that apply of the common justifications of .pdf
 
The Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdfThe Tech section in Forbes magazine reported that the crimi.pdf
The Tech section in Forbes magazine reported that the crimi.pdf
 
QUESTION 1 Second mouth A Eumetazoans Molting animals .pdf
QUESTION 1  Second mouth A Eumetazoans Molting animals .pdfQUESTION 1  Second mouth A Eumetazoans Molting animals .pdf
QUESTION 1 Second mouth A Eumetazoans Molting animals .pdf
 
Problem 4 20 pts Given the following function and main pr.pdf
Problem 4 20 pts Given the following function and main pr.pdfProblem 4 20 pts Given the following function and main pr.pdf
Problem 4 20 pts Given the following function and main pr.pdf
 
Problems on P functions Find the value of each Integral 1 0.pdf
Problems on P functions Find the value of each Integral 1 0.pdfProblems on P functions Find the value of each Integral 1 0.pdf
Problems on P functions Find the value of each Integral 1 0.pdf
 
Need help finding pvalue with Statskey graph Thank you The.pdf
Need help finding pvalue with Statskey graph Thank you The.pdfNeed help finding pvalue with Statskey graph Thank you The.pdf
Need help finding pvalue with Statskey graph Thank you The.pdf
 
1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf1 Was it a wise move by Netflix to move from a distribution.pdf
1 Was it a wise move by Netflix to move from a distribution.pdf
 
How to Turn a Group of Strangers Into a Team In the age of v.pdf
How to Turn a Group of Strangers Into a Team In the age of v.pdfHow to Turn a Group of Strangers Into a Team In the age of v.pdf
How to Turn a Group of Strangers Into a Team In the age of v.pdf
 
I am trying to implement an ArrayStack but only can get 4 te.pdf
I am trying to implement an ArrayStack but only can get 4 te.pdfI am trying to implement an ArrayStack but only can get 4 te.pdf
I am trying to implement an ArrayStack but only can get 4 te.pdf
 
Hello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdfHello Please help me with the following questions in order .pdf
Hello Please help me with the following questions in order .pdf
 
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdfConceptual Leadership Questionnaire Pg 2022 Take Question.pdf
Conceptual Leadership Questionnaire Pg 2022 Take Question.pdf
 
El peligro de una sola historia Quiero resaltar que uno de .pdf
El peligro de una sola historia  Quiero resaltar que uno de .pdfEl peligro de una sola historia  Quiero resaltar que uno de .pdf
El peligro de una sola historia Quiero resaltar que uno de .pdf
 
El 1 de enero de 2020 Lennon Industries tena acciones en c.pdf
El 1 de enero de 2020 Lennon Industries tena acciones en c.pdfEl 1 de enero de 2020 Lennon Industries tena acciones en c.pdf
El 1 de enero de 2020 Lennon Industries tena acciones en c.pdf
 

Recently uploaded

SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Climbers and Creepers used in landscaping
Climbers and Creepers used in landscapingClimbers and Creepers used in landscaping
Climbers and Creepers used in landscaping
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Scopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS PublicationsScopus Indexed Journals 2024 - ISCOPUS Publications
Scopus Indexed Journals 2024 - ISCOPUS Publications
 
demyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptxdemyelinated disorder: multiple sclerosis.pptx
demyelinated disorder: multiple sclerosis.pptx
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 

Homework 1 Generate vehicle plate numbers Assume a New Yor.pdf

  • 1. Homework 1 - Generate vehicle plate numbers Assume a New York State vehicle plate number consists of three uppercase, a dash, and four digits, for example: 0SK-2525, DVS-0006, etc. Your task is to write a function that can randomly generate these strings in the above format. Please complete this notebook on Colab, save it as .ipynb and submit that file to Blackboard. Task 1 (7 points) Please complete the new_license_plate( ) function below to return a random license plate string that follows the valid New York State format as specified. You can only change the body of the function using only basic types and features of Python that we have been looking at so far (e.g. basic types, functions, loops, etc.) You may rely on the random module of Python to generate random numbers. For your convenience, there's a small loop at the end that will generate 5 random license plates when you complete your function.