├── README.md └── marksheet.py /README.md: -------------------------------------------------------------------------------- 1 | # MyPython 2 | my test codes on python 3 | 4 | To run this program: 5 | 6 | 1. open terminal in Linux (for my case lubuntu) 7 | 2. wrrite sudo bash 8 | 3. password 9 | 4. then: python 10 | eg: python marksheet.py 11 | 12 | 13 | 14 | reach me at : crush.vlove@gmail.com 15 | -------------------------------------------------------------------------------- /marksheet.py: -------------------------------------------------------------------------------- 1 | Hindi = input () 2 | English = input () 3 | Maths = input () 4 | Environment = input () 5 | Science = input () 6 | 7 | print "Hindi %i"% Hindi 8 | print "English %i" % English 9 | print "Maths %i" % Maths 10 | print "Environment %i" % Environment 11 | print "Science %i" % Science 12 | 13 | total_number = Hindi + English + Maths + Environment + Science 14 | 15 | print "total_number %i" % total_number 16 | 17 | total_per = total_number * 100/500 18 | print (total_per) 19 | 20 | if total_per < 60: 21 | print "you are fail" 22 | 23 | else: 24 | print "you are pass" 25 | 26 | --------------------------------------------------------------------------------