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 Second Quiz

hello I'm new to python , and this question is abit tough for me, can anyone help out please?

.

Julian Gutierrez
Julian Gutierrez
19,201 Points

What question are you needing help with?

Steven Parker
Steven Parker
229,732 Points

It's important to quote the question because the quiz randomly picks 4 questions from a larger set so it may be different each time it is used.

4 Answers

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,423 Points

In an interactive Python session:

# to get help use
help()
# to get help on the type str use
help(str)
# to get help on the method upper of the type str use
help(str.upper)

This is the correct answer. (STR.upper) and not (str.upper). The author in the video is referring to the STR and not str in the older version of Python.

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

This is not correct. Kenneth is referring to the built-in str object (lowercase). All videos are intended to reference Python 3.

This is the correct answer. (STR.upper) and not (str.upper). The author in the video is referring to the STR and not str in the older version of Python.

Chris Freeman
Chris Freeman
Treehouse Moderator 68,423 Points

Still not correct. Please do not simply repost your answer.

The answer on the quiz fill-in blank asked for the upper syntax for the stringSTR) which the author made mention of. I answered with the lower (str.upper) and it returned as incorrect time and time again. i just got a email notice from Treehouse awarding me 9 points for my answer to the quiz question. Hope that helps and clarifies!