Quantcast
Viewing latest article 8
Browse Latest Browse All 10

Answer by Jon W for Add variables to tuple

I'm pretty sure the syntax for this in python is:

user_input1 = raw_input("Enter Name: ")user_input2 = raw_input("Enter Value: ")info = (user_input1, user_input2)

once set, tuples cannot be changed.


Viewing latest article 8
Browse Latest Browse All 10

Trending Articles