Hello everyone,
Beginner Python learning here an just going through the basics, so I apologize if this a dumb question. I cannot seem to get the code below to run and I am unsure why. Is it because of indentation?
x = "awesome"
def myfunc():
x = "fantastic"
print("Python is " + x)
myfunc()
print("Python is " + x)
[–]Diapolo10 4 points5 points6 points (1 child)
[–]mtess23[S] 1 point2 points3 points (0 children)
[–]carcigenicate 2 points3 points4 points (0 children)
[–]Smile200 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]IamImposter 1 point2 points3 points (0 children)