What are different types of Loops supported in Python, explain with examples. Write a program that takes inputs from user until a 0 is entered and...
This question has been answered
Question

python programming ...kindly check attached picture for questions,,, thanks

101fa.png

Image transcriptions

Q. 1. What are different types of Loops supported in Python, explain with examples. Q. 2. Write a program that takes inputs from user until a 0 is entered and then counts the total number of positive numbers entered. (e.g. 10, -5, -3, 21, -4, 0 should result total number of positive numbers are 2.) Q. 3. Write a program in Python that would generate a phone number if the user enters the number as 1- ASU-HOLIDAY (which 1-278-4654339) using the keypad below oooo T-Mobile 11:10 AM 90% 1 2 3 ABC DEF 4 GHI 5 JKL 6 MNO 7 8 9 PORS TUV WXYZ * O # + Q. 4. Create a function in python that takes 2 parameters or arguments, the first being "ounces' and second being 1 or 2 or 3 where 1 - pounds; 2-liters and 3 - gallons. Based on the values 1, 2 or 3 passed as a parameter to the function it converts the ounces into pounds /liters /gallons and returns the value.

Answered by Expert Tutors

lestie consequat, ultrices ac magn

  1. ur laore
  2. ur laoreet

or nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices

ongue ve

m ipsum dolor sit amet, consectetur a

Fusce dui lectus, congue vel laoreet ac

facilisis. Pellentesque dap


or nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, d


iscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat,

ongue ve

sus ant

ac, dictum vit

Fusce dui l

, consec


risus ante, dapibus a molestie consequat, ultrices ac



ec

a molesti

cing elit.

Fusce dui lectus, congue vel laoreet ac, dictum vit

ultrices ac magna. Fusce dui

Fusce dui lectus, congue vel laoreet

molestie consequat, ultrices

tesque dapibus efficitur laoreet. Nam r

ongue vel laoreet ac, dictum vitae

ongue vel laoreet ac, dictum vitae

ac, dictum vitae odio. Donec aliquet. Lorem ipsum d


rem ip

acinia pulvinar t

entesque dapibus

entesque dapibus

inia pulvinar tort

, consectetur adi

lestie consequat,

entesque dapibus efficitur laoreet. Nam


one

ec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus

risus ante, dapibus a molestie consequa

sum dolor s

, dictum

at, ultrices ac ma

cing elit. Nam lacinia pulvinar tortor nec facilis

iscing elit. Nam lacinia pulvinar tortor nec

, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dict

ultrices ac magna. Fusce dui lectus, congue vel laoreet

ongue vel laoreet ac, dictum vitae

inia pulvinar tortor nec faci

facilisis. Pellentesque dapibus efficit

risus ante, dapibus

rem ipsum dolor sit amet, consectetur adi

ec facilisis


rem ip

sus ante, dapibus a molestie cons

tesque dapibu


sum

m risus ante, dapibus a mo

ec aliquet. Lorem ipsum dolor

a. Fusce dui lectus, congue vel laoreet ac, dictum

ipsum dolor sit amet, consectet

trices ac magna. Fusce dui lectus, congue vel la

sus ante, dapibus a molestie co

, dictum vitae odio. Donec aliquet. Lorem ipsum d


lestie consequat, ul

o. Donec aliquet. L

sum dolor sit amet,


rem ip

ec aliquet. Lorem ip

or nec

Donec al

The student who asked this found it Helpful
Overall rating 100%
Get unstuck

443,685 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses