A certain college classifies students according to credits earned. A studentwith less than 7 credits is a Freshman. At least 7 credits are required to bea Sophomore, 16 to be a Junior and 26 to be classified as a Senior. Write aprogram that calculates class standing from the number of credits earned.

Respuesta :

yemmy

Answer and explanation:

Here is code:

credit = int(input("Enter credits : "))

if credit < 7:

print("You are a Freshman")

elif credit >= 7 and credit < 16:

print("You are a Sophomore")

elif credit >= 16 and credit < 26:

print("You are a Junior")

elif credit >= 26:

print("You are a Senior")

Output: check image

Ver imagen yemmy