0
Student mark
when create student mark program..how should mark below 100..if I type 101 wrong input.how should I restrict below 100marks
12 odpowiedzi
+ 4
Vel Murali , may be you want to share your code in playground and link it here, so that we can have a more close look on it? Thanks!
+ 3
...
...
if (avg > 100):
print("wrong input")
elif (avg>=90 & avg<=100):
print("Grade: A")
...
....
+ 3
https://code.sololearn.com/c0C9Hfh5H3M4/?ref=app
Check is is true ?
check this code !
+ 2
Vel Murali , we are not here to produce code for you or do your homework. This is not the purpose of sololearn. It is a self-learning platform, but there is a great community that can help if stuck somewhere. So please do not put code direct in post, but put your code in playground and save it there. Than you can link this code here. The code you posted here has several syntax errors! Thanks for your understanding!
0
Thank u so much:) ur replied..yes I share my code
0
I'm also need student mark list program using oops,if,elif,else,loops..I tried..but I need help..I'm a beginner..but my brother told to do those exercise..anyone help me pls
0
anyone here
0
sub1=int(input("Enter marks of the first subject: "))
sub2=int(input("Enter marks of the second subject: ")) sub3=int(input("Enter marks of the third subject: "))
sub4=int(input("Enter marks of the fourth subject: ")) sub5=int(input("Enter marks of the fifth subject: ")) avg=(sub1+sub2+sub3+sub4+sub4)/5
if(avg>=90):
print("Grade: A")
elif(avg>=80&avg<90):
print("Grade: B")
elif(avg>=70&avg<80):
print("Grade: C") elif(avg>=60&avg<70):
print("Grade: D")
else:
print("Grade: F")
0
sub1=int(input("Enter marks of the first subject: "))
sub2=int(input("Enter marks of the second subject: ")) sub3=int(input("Enter marks of the third subject: "))
sub4=int(input("Enter marks of the fourth subject: ")) sub5=int(input("Enter marks of the fifth subject: ")) avg=(sub1+sub2+sub3+sub4+sub4)/5
if(avg>=90):
print("Grade: A")
elif(avg>=80&avg<90):
print("Grade: B")
elif(avg>=70&avg<80):
print("Grade: C") elif(avg>=60&avg<70):
print("Grade: D")
else:
print("Grade: F")
0
Hi codemonkey..Plz help me this..I need an proper program using (polymorphism, inheritance,conditional statements,Loops)..I used Conditions..anyone pls rearrange the code using I mentioned and sent back to me..I need help
0
Hi Codemonkey..Pls do helpful for the above program..I will never forget u..
0
Thank You so much:) for ur kind reply.. It helps us my upcoming studies.. Really tq so much..