mahdi-zarepour / python-workshop

Python workshop in shahid Bahonar university of Kerman
3 stars 0 forks source link

American school score system #3

Open Eshaghian opened 3 days ago

Eshaghian commented 3 days ago

`#Score system in USA print('Hi') name,score = input('What is your name?'),float(input('What is your school grade?'))

if 100>=score> 89: print(name, 'your letter score is A.') pass_status = ' pass with Excellent score ' elif 89>=score> 79 : print(name, 'your letter score is B ') pass_status = ' pass with great score' elif 79>=score> 69 : print(name, 'your letter score is C ') pass_status = ' pass with Not Bad score' elif 69>=score> 59 : print(name, 'your letter score is D ') pass_status = ' pass with Bad score' elif 0<=score<= 59 : print(name, 'your letter score is F and') pass_status = " You couldn't pass." else: print("Please enter the allowed amount!")

print(pass_status)

`

Eshaghian commented 3 days ago

Screenshot (21)