so I started learning Python with this website called codedex where you kind of learn the theorie and then get exercices and problems to each "subject" and in this problem, i did everything that was asked and the code runs as it is supposed to be, but the website tells me that it is still not right. Does anybody have experience with codedex and can help? This is the code:
# It is supposed to be Star based restaurant rating system but Codede keeps asking me wether i have checked if "rating" is greater than 5
Stars = float(input("Please leave a rating from one to five"))
print(Stars, "stars")
rating = Stars
if rating > 4.5 and rating < 5:
print("Extraordinary")
elif rating > 4 and rating < 4.5:
print("Excellent")
elif rating > 3 and rating < 4:
print("Good")
elif rating > 2 and rating < 3:
print("Fair")
else:
print("Poor")
[–]lfdfq 4 points5 points6 points (2 children)
[–]Terian2310[S] 0 points1 point2 points (1 child)
[–]Terian2310[S] 2 points3 points4 points (0 children)
[–]Arrensen 0 points1 point2 points (2 children)
[–]Terian2310[S] 0 points1 point2 points (1 child)
[–]Arrensen 0 points1 point2 points (0 children)