Python Refresher

Python in a Weekend - Comments

Comment out the line of code that is causing an error.

                name = 'Nick'
age = 31
age += 22t
print(f'My name is {name} and I am {age} years old')
            

Solution

                    name = 'Nick'
age = 31
# age += 22t
print(f'My name is {name} and I am {age} years old')
                

Here's some courses you might like: