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 trialJordan Thoma
302 Pointsdefining conditions
i've been stuck on this problem for over an hour, the videos and guides dont ever go injto detail about establishing conditions so that certains values can be set to logically make sense to the system, so that (5 + "a") has a set value instead of being a jumbled mess, am i missing a video somewhere? pls help :)
print("Hello")
print("name")
print("Let's do some math!")
print(5 + "a")
print("Thanks for playing along!")
1 Answer
Thomas Fildes
22,687 PointsHi Jordan,
This challenge is a bit of a weird one. Basically you have to create two variables (name and a) and assign it to anything you like to make the print methods work. Here is the code is used to pass this challenge:
print("Hello")
name = "Tom"
print(name)
print("Let's do some math!")
a = 7
print(5 + a)
print("Thanks for playing along!")
Hope this helps! Happy Coding!!!
Jordan Thoma
302 PointsJordan Thoma
302 PointsYes! that is the correct answer it was looking for and it also kinda answers my question completely about a couple things, thanks for the help!