Monday, June 3, 2019

WAP to input the marks of a student and print the result (passing marks = 40 %)

Marks = float(input('Enter marks = '))
print('-'*10)
if (Marks<40.0):
print('fail = ' + str(Marks))
else:
print('Pass = ' + str(Marks))