Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
216,136 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 67,989 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 67,989 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 67,989 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!