students = {}
name = input("Give me the student name(key): ")
grade = input("What is their Grade(value): ")
'(put in to dictionary key=name and value = grade print all students and their grades from dictionary"
students = {}
name = input("Give me the student name(key): ")
grade = input("What is their Grade(value): ")
'(put in to dictionary key=name and value = grade print all students and their grades from dictionary"
students = {}
name = input("Give me the student name(key): ")
grade = input("What is their Grade(value): ")
students[name] = grade
You can just use students[key] = value
Below code should do your job. For details on how to add to dictionary you can refer the links shared above or go through the python documentation for it.
students = {}
name = input("Give me the student name(key): ")
grade = input("What is their Grade(value): ")
students[name] = grade
print(students)