Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #107.79K
~101.93K People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for jopeto

> Probably the easiest way to do this is to use the local variable dictionary vars() to create new variables on the fly: food = 'bread' vars()[food] = 123 print bread # --> 123 >You can print out vars() to see what's going on. I've tried this and it works …

Member Avatar for Rayalacheruvu
1
102K

The End.