Brand new to Python and sucking at it

Viewed 20

I'm following an exercise and this is exactly what the example shows but I get an error:

f = 101
print(f)
def someFunction():
global f
print(f)
f = 'I suck at Python'
print(f)
Error:
File "C:\Users\sdqtfrmsa\PycharmProjects\HelloWorld\app.py", line 4
    global f
    ^
IndentationError: expected an indented block after function definition on line 3

Process finished with exit code 1

What am I doing wrong?

0 Answers
Related