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

6th Aug 2020, 10:42 AM
Vel Murali
Vel Murali - avatar
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!
6th Aug 2020, 1:52 PM
Lothar
Lothar - avatar
+ 3
... ... if (avg > 100): print("wrong input") elif (avg>=90 & avg<=100): print("Grade: A") ... ....
7th Aug 2020, 9:54 PM
Pritee
+ 3
https://code.sololearn.com/c0C9Hfh5H3M4/?ref=app Check is is true ? check this code !
8th Aug 2020, 1:10 AM
Shubham Ingale
Shubham Ingale - avatar
+ 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!
7th Aug 2020, 1:29 PM
Lothar
Lothar - avatar
0
Thank u so much:) ur replied..yes I share my code
6th Aug 2020, 4:25 PM
Vel Murali
Vel Murali - avatar
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
6th Aug 2020, 4:27 PM
Vel Murali
Vel Murali - avatar
0
anyone here
6th Aug 2020, 4:59 PM
Vel Murali
Vel Murali - avatar
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")
6th Aug 2020, 5:27 PM
Vel Murali
Vel Murali - avatar
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")
6th Aug 2020, 5:27 PM
Vel Murali
Vel Murali - avatar
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
6th Aug 2020, 5:29 PM
Vel Murali
Vel Murali - avatar
0
Hi Codemonkey..Pls do helpful for the above program..I will never forget u..
6th Aug 2020, 5:30 PM
Vel Murali
Vel Murali - avatar
0
Thank You so much:) for ur kind reply.. It helps us my upcoming studies.. Really tq so much..
7th Aug 2020, 11:20 PM
Vel Murali
Vel Murali - avatar