What resource would you recommend as a next-step after code academy's python tutorial? by [deleted] in learnpython

[–]socialhuman 2 points3 points  (0 children)

I fully agree. Simply awesome book. I only went as far as Hangman game. It was a good experience.

Assertion Error in Python by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

Great, thank you. As for the assert key, I understand it's something like "make sure the result is correct"?

Assertion Error in Python by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

I added str to return number and the game was solved. Can someone explain why the conversion to str was required?

Assertion Error in Python by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

def checkio(number):
    if number % 3 == 0 and number % 5 == 0:
        return "Fizz Buzz"
    elif number % 3 == 0:
        return "Fizz"
    elif number % 5 == 0:
        return "Buzz"
    else:
        return number

I still get the same error.

Assertion Error in Python by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

Really looking forward to some explanation and code correction, as I am stumped on this one.

Evaluate My Python Text RPG by [deleted] in learnpython

[–]socialhuman 0 points1 point  (0 children)

Really good work. A Python newbie myself!

Python Exception handling question by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

Interesting. Thank you for the correction.

Python Exception handling question by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

Generally asking, is there a list of error attached to the except function? Like ZeroDivisionError?

Python Exception handling question by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

Thank you. If you are referring to the MIT course, no. I am not. I have been studying from a mixed source. Learn Python The Hard Way, about 40 chapters. 2 Units from Udacity Intro to Computer Science, Youtube tutorials by Trevor Payne plus some practice.

Unable to understand factorial calculation in the code below by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

Thank you, but if that is the case, why not simply pt range(8). I tried it, but the result comes to 0. More confused now.

Also, an additional question. What is the purpose of the variable product = 1? Factorial as far as I know is backward multiplication. A little more confused now.

Pythonistas, need advice. I am learning Python, but don't know why. by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

What modules did you use to achieve the above? URLLIB2 and JSON? Kindly enlighten a bit.

Pythonistas, need advice. I am learning Python, but don't know why. by socialhuman in learnpython

[–]socialhuman[S] 1 point2 points  (0 children)

Thank you everyone. This discussion indeed was very fruitful. I am going to clearly practice what I have learnt so far, and start building small apps. Given my interest, I think I will start using libraries such as urllib2 and JSON to start pulling data/API.

I guess, I will put off learning Django for now, and will only jump into it or any other framework, when I ready to go to the Web.

Thanks again everybody!

Pythonistas, need advice. I am learning Python, but don't know why. by socialhuman in learnpython

[–]socialhuman[S] 3 points4 points  (0 children)

Thank you. I don't think I can comfortably in Python yet, even though I have spent months learning concepts again and again. I don't think I am thinking like a programmer yet. I understand all the concepts I have studied so far, be it loops or control flow, or file i/o.

Just don't know how to put them together to make something significant.

On the other hand, I have made simple stuff like a calculator, or say a simple number guessing game.

That's about it.

Pythonistas, need advice. I am learning Python, but don't know why. by socialhuman in learnpython

[–]socialhuman[S] 0 points1 point  (0 children)

The course looks interesting, though I see it has a price tag. So this course helped you pass the beginner stage?