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!

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 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