Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

marks input using list in python

m1 = int(input("Enter Marks for Student Number 1: "))
m2 = int(input("Enter Marks for Student Number 2: "))
m3 = int(input("Enter Marks for Student Number 3: "))
m4 = int(input("Enter Marks for Student Number 4: "))
m5 = int(input("Enter Marks for Student Number 5: "))
m6 = int(input("Enter Marks for Student Number 6: "))

myList = [m1, m2, m3, m4, m5, m6]
myList.sort()
print(myList)
Comment

PREVIOUS NEXT
Code Example
Python :: seaborn hue order 
Python :: pandas sort values reset index 
Python :: how to detect a keypress tkinter 
Python :: pandas groupby count as new column 
Python :: replace cell pandas 
Python :: python json dump utf8 
Python :: 1 eth to wei 
Python :: python clipboard to image 
Python :: like in mysqldb python 
Python :: how to count max repeated count in list python 
Python :: fraction thesis 
Python :: import forms 
Python :: get the number of today week python 
Python :: python print os platform 
Python :: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead. 
Python :: how to convert column to index in pandas 
Python :: beautiful soup 4 python 
Python :: csrf token exempt django 
Python :: add favicon fastapi 
Python :: brownie get active network 
Python :: add self role with discord bot python 
Python :: split filename and extension python 
Python :: how to create a object in djago views model 
Python :: python flat list from list of list 
Python :: how to check suffix in python 
Python :: print whole dataframe python 
Python :: django return only part of string 
Python :: identity matrix in python 
Python :: install python homebrew 
Python :: fake user agent python 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =