name1='jhonson' i=1 print(name1) #give jhonson value #another way name(i)-->name1--->'jhonson' #but it is not working. How to do with name,i variables combine to create name1 then get 'jhonson' value
name(i)
name = ["foo","boo", "goo"] # a list of indexed variables... print(name[1]) name[1]="jhonson" print(name[1])
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)