python defined variable code example Example 1: python variable Python variable Example 2: Use variables in python x = 'Welcome' print(x)