print(*mobile_device,sep='\n')
device_choice = input('Choose phone or tablet from the list above(1 to 10) ')
while True:
if device_choice == 1:
total_price = total_price + Price[0]
elif device_choice == 2:
total_price = total_price + Price[1]
elif device_choice == 3:
total_price = total_price + Price[2]
else:
print(*mobile_device,sep='\n')
device_choice = input('Choose phone or tablet from the list above(1 to 10) ')
while True:
if charger_choice == 1:
print('you do not want to buy a charger')
elif charger_choice == 2:
total_price = total_price + price[13]
items_purchased[3] = charger_choice[0]
elif charger_choice == 3:
total_price = total_price + Price[14]
items_purchased[3] = charger_choice[1]
elif charger_choice == 4:
total_price = total_price + Price[14] + Price[15]
items_purchased[3] = charger_choice[0], charger_choice[1]
else:
charger_choice = input('Choose the charger(s) you want: 1) None or 2) Car or 3) Home or 4) Car and Home ').lowe
# There may be some instructions here before the loop starts...
START:
IF (some condition is True) THEN
DO (one or more instructions)
JUMP to START
END IF
# There may also be some instructions here after the loop ends too.
Last reply 1 day ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 2 days ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 weeks ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 4 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Last reply 1 day ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 2 days ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 weeks ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 4 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]