Answers for "python key input"

1

how to have player input in python

#variable for the input:
variable_name = input("please add your input: ")
print(variable_name)

#example
#output(Type Hi please: ")
#print(output)
#Output will be Hi if you typed hi
Posted by: Guest on May-17-2020
0

python user input

user = input("yes, non")
Posted by: Guest on September-23-2020
0

python dictionary input

class_list = dict() data = input('Enter name & score separated by ":" ') temp = data.split(':') class_list[temp[0]] = int(temp[1])  # Displaying the dictionary for key, value in class_list.items(): 	print('Name: {}, Score: {}'.format(key, value)) 
Posted by: Guest on May-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language