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 (Retired) Pick a Number! Any Number! Imports

What am I missing?

We just were asked, at the conclusion of the last lesson, to write a program that requires looping and else-if statements, neither of which we have touched on. Now we are being asked to "make" a function, something else we haven't learned yet. Is this going to be a common theme, being asked questions involving things that haven't been taught yet?

random_num.py
import random

2 Answers

Hey Mark,

Although it's found in the library under the Javascript courses, the Introduction to Programming course (https://teamtreehouse.com/library/introduction-to-programming) will provide a good intro to some of these concepts. I'd recommend starting with that one to get you up to speed with this course.

Hi Tyler.

Thanks for your reply. I don't think that would help, I already have a little programming experience in other languages. I'm just wanting to get familiar with Python. I can google how to make a function (def) or how to do else-ifs in Python (elif cond:). I would just think that you would see it first and then be asked about it, not the other way around.