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

What does File "<stdin>", line 1 mean?

input_string = input("What string do you want to use? ")
input_int = input("How many times should I repeat it ")

print(input_string*int(input_int))

this is my code and I got that error

4 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Where are you running this? In Workspaces? Is it saved as a file and then being run or are you doing it directly in the Python shell?

on workspace

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

Hmm. I can't replicate it. Am I doing anything here that you're not?

Thanks Kenneth, I figured it out! I didn't know you always had to start at "treehouse:-/Workspace$