Quantcast
Channel: Add variables to tuple - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by Jon W for Add variables to tuple

$
0
0

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 all articles
Browse latest Browse all 10

Trending Articles