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
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
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))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us