I wasn’t sure if this was the right place to post this, but it has been a big problem for me.
My main problem with this course is it doesn’t offer enough opportunities for practice. It gives me the equivalent of lectures and a little bit of homework, but I need a lot more practice if I’m going to retain what I’m trying to learn. I Googled “python practice” and “python homework” and got a boatload of practice options. However, when I try to do these little challenges, I get a parade of roadblock errors (syntax errors, mostly). Every line seems to have something wrong with it.
I’m doing this at repl.it, which seems to use a different version of Python. I tried “Python 3” and it didn’t work, so I’ve been using the one just called “Python”… which also doesn’t work. I found one called Python 2.7 and I thought that must be it, but it isn’t.
I learned what Codecademy calls
raw_input() is just called
input() at repl.it. The
print "String text" syntax doesn’t work over there, I have to use
print("String text"). These are the only two specific ones I’ve tracked down, but I’m currently struggling to write a program that tells the user whether an integer is odd or even. It’s the world’s simplest program, but I’m like a toddler slapping the keyboard, trying to write it.
Is this a repl.it problem or an Codecademy one? Is there somewhere else I can practice Python that jibes better with what I’m learning here? If I ever want to use Python am I going to have to take another class to clear out the syntax problems I picked up at Codecademy?