# illegal naming:
# 2my-first_name = "John"
#legal
myfirst_name = "John"

#multi-variable naming
x = y = z = "Orange"

#global variables
#either declared outside of function, or use global keyword

def myfunc():
  global x
  x = "fantastic"

myfunc()

print("Python is " + x)

431448defbacbe6912bc4908e52b88dfe4b88ee0
<mask token>

<mask token>


def myfunc():
    global x
    x = 'fantastic'


<mask token>

<mask token>


def myfunc():
    global x
    x = 'fantastic'


myfunc()
print('Python is ' + x)

myfirst_name = 'John'
x = y = z = 'Orange'


def myfunc():
    global x
    x = 'fantastic'


myfunc()
print('Python is ' + x)

# illegal naming:
# 2my-first_name = "John"
#legal
myfirst_name = "John"

#multi-variable naming
x = y = z = "Orange"

#global variables
#either declared outside of function, or use global keyword

def myfunc():
  global x
  x = "fantastic"

myfunc()

print("Python is " + x)
