variable in python example Example 1: variables in python x = 5 y = "John" print(x) print(y) Example 2: Use variables in python x = 'Welcome' print(x)