Plz help code practice for python
2 answers:
Answer:
grade = int(input())
grade = "Freshman" if grade == 9 else "Sophomore" if grade == 10 else "Junior" if grade == 11 else "Senior" if grade == 12 else "Not in High School"
print(grade)
Explanation:
One liner if-elif-elif-else statement. Tested it, works just fine.
You might be interested in
Gravity Falls
Adventure Time
SpongeBob SquarePants,
Cailou
Bubble Guppies
Dora
Teletubbies
I've included my code in the picture below. Best of luck
Answer:
Convert to a decimal.
22.9183118°
Explanation:
D. View.
You can find the workspace and preview of the file in View.