If
x= Apple
y = 0123
How can I create a new variable Apple0123 using x & y?
so basically: COMBINE(x,y) = 5
and if i type in Apple0123 -> the output is 5
If
x= Apple
y = 0123
How can I create a new variable Apple0123 using x & y?
so basically: COMBINE(x,y) = 5
and if i type in Apple0123 -> the output is 5
x = 'Apple'
y = '0123'
x+y
exec("%s = %d" % ((x+y),5))
print(Apple0123)
or
x = 'Apple'
y = '0123'
x+y
vars()[x+y]
print(Apple0123)