'F' → Fullscreen
Create a new Python program named 1-8-type-casting.
Note: since we haven't learned how to handle input errors yet, make sure you type actual numbers when testing your program. Typing letters into int() or float() will crash your program.
int.age = int(input("How old are you? "))months = age * 12
print(f"You are approximately {months} months old.")#float.age = int(input("How old are you? "))months = age * 12
print(f"You are approximately {months} months old.")
length = float(input("What is the length of the rectangle? "))width = float(input("What is the width of the rectangle? "))area = length * width
print(f"The area of the rectangle is {area}.")#int.age = int(input("How old are you? "))months = age * 12
print(f"You are approximately {months} months old.")
length = float(input("What is the length of the rectangle? "))width = float(input("What is the width of the rectangle? "))area = length * width
print(f"The area of the rectangle is {area}.")
score1 = int(input("Enter your first quiz score: "))score2 = int(input("Enter your second quiz score: "))average = (score1 + score2) / 2
print(f"Your average quiz score is {average}.")#Verify your program works correctly.
How old are you? 16 [Enter]You are approximately 192 months old.What is the length of the rectangle? 4.5 [Enter]What is the width of the rectangle? 2 [Enter]The area of the rectangle is 9.0.Enter your first quiz score: 88 [Enter]Enter your second quiz score: 94 [Enter]Your average quiz score is 91.0.Answer the following questions before submitting your work.
1 directly to the result of input() without casting it first?int() over float(), or vice versa?Submit the required files to the appropriate dropbox.