Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics (2015) Python for Beginners Correct errors

i dont understand what this module is asking of me.

im on the challenge task 1 of 1 in python basics and i have no idea what i should be doing.

errors.py
print("Hello")
python errors.py
name = "Chad" 
print(name)

print("Let's do some math!")
print(5 + "a")

print("Thanks for playing along!')

2 Answers

Thomas Fildes
Thomas Fildes
22,687 Points

Hi Chad,

This challenge is a weird one. Basically you need to create a couple of variables to use the functionality of the sample print functions. You also need to fix a few errors. Here is the code is used to pass this challenge:

print("Hello")
name = "Tom"  # created a variable to use the print(name) below
print(name)

print("Let's do some math!")
a = 25              # created a variable assigning "a" to any number of choice (e.g. 25)
print(5 + a)     # take the quotations off the "a" to use the variable we just made above

print("Thanks for playing along!")  # replace the single ending quotation mark with the double quotation mark so it works

Hope this helps! Happy Coding!!!

Hi Chad Chaney ,

Your supposed to find the errors discussed in the video and fix it. Remember that operations on a string and an integer is not allowed, also that when using quotation marks for strings, you need to be consistent in the kind of quotes you use.

I hope this helped!


sig