Feb-28-2021, 01:37 PM
Use Code Tags.
There are many errors in this short code.
Look like you have a starting whitespace in line 1 as you get
There are many errors in this short code.
Look like you have a starting whitespace in line 1 as you get
IndentationError
.import math a = int(input("Please enter the number of your new : ")) b = int(input("Please enter the number of your oldies: ")) videos = a * 3 oldies = b * 2 print(f'The total cost is ${videos + oldies}')
Output:Please enter the number of your new : 3
Please enter the number of your oldies: 2
The total cost is $13
I guess this task you have gotten to solve,but you have not looked into Python to learn the most basic stuff🧐