SlideShare a Scribd company logo
1 of 1
Download to read offline
Using while statement to write a function
div_3_5(start: int, end: int) -> int
that computes the number of integers from start to end-1 that are divisible by 3 or 5.
Examples
>>> div_3_5(7, 27)
9
>>> div_2_3(0, 1)
1
Note the numbers divisible by 3 or 5 in the integers 7 to 27 are: 9, 10, 12, 15, 18, 20, 21, 24, 25.
Results

More Related Content

More from picscamshoppe

Usted es consultor comercial de People for the Ethical Treat.pdf
Usted es consultor comercial de People for the Ethical Treat.pdfUsted es consultor comercial de People for the Ethical Treat.pdf
Usted es consultor comercial de People for the Ethical Treat.pdfpicscamshoppe
 
usptrerl the following recerd was krpe ale 50PA a the .pdf
usptrerl the following recerd was krpe ale 50PA a the .pdfusptrerl the following recerd was krpe ale 50PA a the .pdf
usptrerl the following recerd was krpe ale 50PA a the .pdfpicscamshoppe
 
Using Ubuntu write a progam in C that do this A Wait for .pdf
Using Ubuntu write a progam in C that do this A Wait for .pdfUsing Ubuntu write a progam in C that do this A Wait for .pdf
Using Ubuntu write a progam in C that do this A Wait for .pdfpicscamshoppe
 
Using Ubuntu write a program uin C that do this A Wait for.pdf
Using Ubuntu write a program uin C that do this A Wait for.pdfUsing Ubuntu write a program uin C that do this A Wait for.pdf
Using Ubuntu write a program uin C that do this A Wait for.pdfpicscamshoppe
 
Using the RamseyCassKoopmans Model what policy would best.pdf
Using the RamseyCassKoopmans Model what policy would best.pdfUsing the RamseyCassKoopmans Model what policy would best.pdf
Using the RamseyCassKoopmans Model what policy would best.pdfpicscamshoppe
 
Using the pypcaptile library already available in the VLE.pdf
Using the pypcaptile library already available in the VLE.pdfUsing the pypcaptile library already available in the VLE.pdf
Using the pypcaptile library already available in the VLE.pdfpicscamshoppe
 
Using the Mpgcsv dataset b Run a basic linear regression.pdf
Using the Mpgcsv dataset b  Run a basic linear regression.pdfUsing the Mpgcsv dataset b  Run a basic linear regression.pdf
Using the Mpgcsv dataset b Run a basic linear regression.pdfpicscamshoppe
 
Using the payoffs for the HawkDove game that we discussed i.pdf
Using the payoffs for the HawkDove game that we discussed i.pdfUsing the payoffs for the HawkDove game that we discussed i.pdf
Using the payoffs for the HawkDove game that we discussed i.pdfpicscamshoppe
 
Using the line for the Annual mean calculate the average .pdf
Using the line for the Annual mean calculate the average .pdfUsing the line for the Annual mean calculate the average .pdf
Using the line for the Annual mean calculate the average .pdfpicscamshoppe
 
Using the information below to answer the following two ques.pdf
Using the information below to answer the following two ques.pdfUsing the information below to answer the following two ques.pdf
Using the information below to answer the following two ques.pdfpicscamshoppe
 
Using the information below to answer the following three qu.pdf
Using the information below to answer the following three qu.pdfUsing the information below to answer the following three qu.pdf
Using the information below to answer the following three qu.pdfpicscamshoppe
 
Using the following UML please create this java code I spe.pdf
Using the following UML please create this java code  I spe.pdfUsing the following UML please create this java code  I spe.pdf
Using the following UML please create this java code I spe.pdfpicscamshoppe
 
Using the following UML please create this code ltAbstrac.pdf
Using the following UML please create this code  ltAbstrac.pdfUsing the following UML please create this code  ltAbstrac.pdf
Using the following UML please create this code ltAbstrac.pdfpicscamshoppe
 
Using the following code Install Packages pip install .pdf
Using the following code Install Packages   pip install .pdfUsing the following code Install Packages   pip install .pdf
Using the following code Install Packages pip install .pdfpicscamshoppe
 
Using the data in the table to the right calculate the retu.pdf
Using the data in the table to the right calculate the retu.pdfUsing the data in the table to the right calculate the retu.pdf
Using the data in the table to the right calculate the retu.pdfpicscamshoppe
 
Using the data in Table 52 attached below determine the .pdf
Using the data in Table 52 attached below determine the .pdfUsing the data in Table 52 attached below determine the .pdf
Using the data in Table 52 attached below determine the .pdfpicscamshoppe
 
Using the code below Part 1 Write a static method called L.pdf
Using the code below Part 1 Write a static method called L.pdfUsing the code below Part 1 Write a static method called L.pdf
Using the code below Part 1 Write a static method called L.pdfpicscamshoppe
 
Using MySQL Display the inventory list of movie titles for .pdf
Using MySQL Display the inventory list of movie titles for .pdfUsing MySQL Display the inventory list of movie titles for .pdf
Using MySQL Display the inventory list of movie titles for .pdfpicscamshoppe
 
Using freeglut inside visual studio c++ create a 3D model w.pdf
Using freeglut inside visual studio c++ create a 3D model w.pdfUsing freeglut inside visual studio c++ create a 3D model w.pdf
Using freeglut inside visual studio c++ create a 3D model w.pdfpicscamshoppe
 
USING PYTHON Open a file my_filetxt for reading Read the.pdf
USING PYTHON   Open a file my_filetxt for reading Read the.pdfUSING PYTHON   Open a file my_filetxt for reading Read the.pdf
USING PYTHON Open a file my_filetxt for reading Read the.pdfpicscamshoppe
 

More from picscamshoppe (20)

Usted es consultor comercial de People for the Ethical Treat.pdf
Usted es consultor comercial de People for the Ethical Treat.pdfUsted es consultor comercial de People for the Ethical Treat.pdf
Usted es consultor comercial de People for the Ethical Treat.pdf
 
usptrerl the following recerd was krpe ale 50PA a the .pdf
usptrerl the following recerd was krpe ale 50PA a the .pdfusptrerl the following recerd was krpe ale 50PA a the .pdf
usptrerl the following recerd was krpe ale 50PA a the .pdf
 
Using Ubuntu write a progam in C that do this A Wait for .pdf
Using Ubuntu write a progam in C that do this A Wait for .pdfUsing Ubuntu write a progam in C that do this A Wait for .pdf
Using Ubuntu write a progam in C that do this A Wait for .pdf
 
Using Ubuntu write a program uin C that do this A Wait for.pdf
Using Ubuntu write a program uin C that do this A Wait for.pdfUsing Ubuntu write a program uin C that do this A Wait for.pdf
Using Ubuntu write a program uin C that do this A Wait for.pdf
 
Using the RamseyCassKoopmans Model what policy would best.pdf
Using the RamseyCassKoopmans Model what policy would best.pdfUsing the RamseyCassKoopmans Model what policy would best.pdf
Using the RamseyCassKoopmans Model what policy would best.pdf
 
Using the pypcaptile library already available in the VLE.pdf
Using the pypcaptile library already available in the VLE.pdfUsing the pypcaptile library already available in the VLE.pdf
Using the pypcaptile library already available in the VLE.pdf
 
Using the Mpgcsv dataset b Run a basic linear regression.pdf
Using the Mpgcsv dataset b  Run a basic linear regression.pdfUsing the Mpgcsv dataset b  Run a basic linear regression.pdf
Using the Mpgcsv dataset b Run a basic linear regression.pdf
 
Using the payoffs for the HawkDove game that we discussed i.pdf
Using the payoffs for the HawkDove game that we discussed i.pdfUsing the payoffs for the HawkDove game that we discussed i.pdf
Using the payoffs for the HawkDove game that we discussed i.pdf
 
Using the line for the Annual mean calculate the average .pdf
Using the line for the Annual mean calculate the average .pdfUsing the line for the Annual mean calculate the average .pdf
Using the line for the Annual mean calculate the average .pdf
 
Using the information below to answer the following two ques.pdf
Using the information below to answer the following two ques.pdfUsing the information below to answer the following two ques.pdf
Using the information below to answer the following two ques.pdf
 
Using the information below to answer the following three qu.pdf
Using the information below to answer the following three qu.pdfUsing the information below to answer the following three qu.pdf
Using the information below to answer the following three qu.pdf
 
Using the following UML please create this java code I spe.pdf
Using the following UML please create this java code  I spe.pdfUsing the following UML please create this java code  I spe.pdf
Using the following UML please create this java code I spe.pdf
 
Using the following UML please create this code ltAbstrac.pdf
Using the following UML please create this code  ltAbstrac.pdfUsing the following UML please create this code  ltAbstrac.pdf
Using the following UML please create this code ltAbstrac.pdf
 
Using the following code Install Packages pip install .pdf
Using the following code Install Packages   pip install .pdfUsing the following code Install Packages   pip install .pdf
Using the following code Install Packages pip install .pdf
 
Using the data in the table to the right calculate the retu.pdf
Using the data in the table to the right calculate the retu.pdfUsing the data in the table to the right calculate the retu.pdf
Using the data in the table to the right calculate the retu.pdf
 
Using the data in Table 52 attached below determine the .pdf
Using the data in Table 52 attached below determine the .pdfUsing the data in Table 52 attached below determine the .pdf
Using the data in Table 52 attached below determine the .pdf
 
Using the code below Part 1 Write a static method called L.pdf
Using the code below Part 1 Write a static method called L.pdfUsing the code below Part 1 Write a static method called L.pdf
Using the code below Part 1 Write a static method called L.pdf
 
Using MySQL Display the inventory list of movie titles for .pdf
Using MySQL Display the inventory list of movie titles for .pdfUsing MySQL Display the inventory list of movie titles for .pdf
Using MySQL Display the inventory list of movie titles for .pdf
 
Using freeglut inside visual studio c++ create a 3D model w.pdf
Using freeglut inside visual studio c++ create a 3D model w.pdfUsing freeglut inside visual studio c++ create a 3D model w.pdf
Using freeglut inside visual studio c++ create a 3D model w.pdf
 
USING PYTHON Open a file my_filetxt for reading Read the.pdf
USING PYTHON   Open a file my_filetxt for reading Read the.pdfUSING PYTHON   Open a file my_filetxt for reading Read the.pdf
USING PYTHON Open a file my_filetxt for reading Read the.pdf
 

Recently uploaded

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 

Recently uploaded (20)

Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 

Using while statement to write a function div_3_5start int.pdf

  • 1. Using while statement to write a function div_3_5(start: int, end: int) -> int that computes the number of integers from start to end-1 that are divisible by 3 or 5. Examples >>> div_3_5(7, 27) 9 >>> div_2_3(0, 1) 1 Note the numbers divisible by 3 or 5 in the integers 7 to 27 are: 9, 10, 12, 15, 18, 20, 21, 24, 25. Results