Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the difference between the raw_input function in Python 2 vs 3? #5

Closed
Nirvikalpa108 opened this issue Feb 23, 2019 · 1 comment

Comments

@Nirvikalpa108
Copy link
Contributor

Hi @craigargh, thanks very much for putting this course together. As I was attempting Week 1 homework Question 3, I had an error that only got solved once I used input() instead of raw_input() which I learnt about in the Python docs. I'm not sure if this is something only I will come across, but in case it isn't, do you think it's worth us adding some language to the question to help those attempting it that might come across this problem? If so, let me know and I can try drafting something that you can review. Thanks again, really grateful for all the work you've put into this!

@craigargh
Copy link
Owner

Thanks for pointing this out. The course used to written for Python 2.7, but has recently been updated to Python 3. raw_input() is from Python 2.7 and input() is Python 3.

I didn't realise that it was here when I made the update. I've corrected it now.

I'll mention something in the session today as I didn't get around to doing input() during the session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants