use var in python code example Example 1: Use variables in python x = 'Welcome' print(x) Example 2: vars python >>> vars(dict)