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 versions 2.7 and 3.4 need different code, help!

I have been making a questionaire on python, everything was going well and my code worked in version 2.7 but on updating to 3.4 (which I needed to do) the same code I used in version 2.7 now doesnt work in version 3.4. How can I make code work in 3.4? Thanks

Niall Maher
Niall Maher
16,985 Points

Show us some sample code and we might be able to help

2 Answers

Hi Rebecca,

Here is an article that may help you discover the problems in your code when migrating from 2.x to 3.x.

What's New in Python 3.0

Jeremy Fisk
Jeremy Fisk
7,768 Points

i imagine one of the main differences you need to look at is raw_input is gone in version 3.4 of python