Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

create dictionary from input python

marks = {}

for i in range(10):
    student_name = input("Enter student's name: ")
    student_mark = input("Enter student's mark: ")
    marks[student_name.title()] = student_mark

print(marks)
Comment

PREVIOUS NEXT
Code Example
Python :: numpy array_equal 
Python :: check if camera is being used python 
Python :: pandas series quantile 
Python :: python remove element from list 
Python :: add time to datetime python 
Python :: Make a Basic Face Detection Algorithm in Python Using OpenCV and Haar Cascades 
Python :: how to reboot a python script 
Python :: python strptime format codes 
Python :: python run all tests 
Python :: random sample with weights python 
Python :: infix to postfix python code 
Python :: python get cookie from browser 
Python :: pandas profile 
Python :: separate path python 
Python :: pandas dataframe remove rows by column value 
Python :: python exceptions 
Python :: open and read a file in python 
Python :: pandas export csv without index 
Python :: image rotate in python 
Python :: plot sphere in matplotlib 
Python :: sort a series pandas 
Python :: continual vs continuous 
Python :: python check string not exist in array 
Python :: python printing to a file 
Python :: how to get a number from a string in python 
Python :: how to plotting bar on matplotlib 
Python :: short form of if statement in python 
Python :: python pandas apply function to one column 
Python :: decision tree regressor 
Python :: download image from url python 3 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =