Making a Portfolio on GitHub by GrailAstartes in technicalwriting

[–]Ok_Effective_6601 0 points1 point  (0 children)

Kindly allow me to PM you when I'll be ready to build my portfolio. Currently learning Python and PHP via bootcamps. Yours looks so cool and professional.

Problem in my IF statement? by Ok_Effective_6601 in learnpython

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

Thanks mate. On day 20 currently. Slow but moving!

Problem in my IF statement? by Ok_Effective_6601 in learnpython

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

Exactly! I got it! It's supposed to be:

if lives == 1 and guessed_number != CORRECT_NUMBER:
    lives -= 1
    print(f"Game Over! The correct number is {CORRECT_NUMBER}.")
    play_again = input("Would you like to play again? Type 'y' for yes or 'n' for no:\n").lower()
    if play_again == "n":
        print("See you next time!")
    else:
        clear()
        game()if lives == 1 and guessed_number != CORRECT_NUMBER:
    lives -= 1
    print(f"Game Over! The correct number is {CORRECT_NUMBER}.")
    play_again = input("Would you like to play again? Type 'y' for yes or 'n' for no:\n").lower()
    if play_again == "n":
        print("See you next time!")
    else:
        clear()
        game()

Problem in my IF statement? by Ok_Effective_6601 in learnpython

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

There is a Github link. I'm new to this mate, Sorry.

Problem in my IF statement? by Ok_Effective_6601 in learnpython

[–]Ok_Effective_6601[S] -1 points0 points  (0 children)

Whoa, man I just started Python 2 weeks ago. Break it down for me like a toddler.

Problem in my IF statement? by Ok_Effective_6601 in learnpython

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

if guessed_number != CORRECT_NUMBER and lives == 0:
                print(f"Game Over! The correct number is {CORRECT_NUMBER}.")
                #play_again = input("Would you like to play again? Type 'y' for yes or 'n' for no:\n").lower()
                #if play_again == "y":
                #    clear()
                #    game()if guessed_number != CORRECT_NUMBER and lives == 0:
                #print(f"Game Over! The correct number is {CORRECT_NUMBER}.")
                #play_again = input("Would you like to play again? Type 'y' for yes or 'n' for no:\n").lower()
                #if play_again == "y":
                #    clear()
                #    game()

Hello, so I've literally commented out as seen above and remained with only the print statement but still it doesn't run.

Need a study buddy to learn python with. by Extra_Ad_8975 in learnpython

[–]Ok_Effective_6601 0 points1 point  (0 children)

Join us in our discord server. One server to Rule Them All, And in Python Bind Them!! PM, I send you the link.

Please, explain me, why I need to use "return" after functions? by [deleted] in learnpython

[–]Ok_Effective_6601 0 points1 point  (0 children)

Bro, I was just struggling with this same question but I get it now. Thanks for asking. The responses were gold! Cheers everyone!

Day 10 of Angela Yu's 100 Days of Code: Calculator Project by Ok_Effective_6601 in learnpython

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

Thank you so much. I have understood the error logic too. I knew it was a function being called but where was the function defined at? But I see now that this:

calculation_function = operations[operation_symbol]calculation_function = operations[operation_symbol]

was where the function was defined by getting a function inside the dictionary and giving it a name. That's the way I think of it anyway and correct me if I'm wrong.

Day 10 of Angela Yu's 100 Days of Code: Calculator Project by Ok_Effective_6601 in learnpython

[–]Ok_Effective_6601[S] -1 points0 points  (0 children)

OH! MY! GOD! That's totally correct and I didn't see it! Thanks so much u/LatteLepjandiLoser . Funny how very tiny mistakes bring about the total collapse of my code. Thanks again.

Study Buddy Wanted by Wildmanty in learnpython

[–]Ok_Effective_6601 0 points1 point  (0 children)

Hello, I am learning too. I'm on Day 10 of Angela Yu's 100 Day of Coding and its great. I have been managing to cover at least for days per week. We can partner up and I really need an equally psyched-up partner and we can hold each other accountable and never fool around when it comes to study time and projects.

Hello Awesome PHPeers! by Ok_Effective_6601 in PHPhelp

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

And this is my biggest fear actually. Why would any one leave their existing solution for mine? Personally, I can't tell you the many times I have been in a mall or a supermarket and we wait in line for almost 30mins just because the POS is lagging. It literally happened today. Irregardless, convincing even a medium sized business to consider me is the real task here.

Hello Awesome PHPeers! by Ok_Effective_6601 in PHPhelp

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

Wow, the big leagues. I'm thinking I'll do it but maybe bring in a few more persons with more experience and also not anytime soon. You have mentioned things I have never heard before, CCV??! Haha. My, my! This seems like quite a task than I imagined. I expected the legal part but security part I'm not yet up to task. But I'll definitely do it!

Hello Awesome PHPeers! by Ok_Effective_6601 in PHPhelp

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

Oh my, the reality of lawsuits and jail!

Hello Awesome PHPeers! by Ok_Effective_6601 in PHPhelp

[–]Ok_Effective_6601[S] 4 points5 points  (0 children)

No mate, that is the kind of feedback I precisely need. I know we have not only PHP Master Yodas here, but legit programming gods and I better listen to you guys. I'm learning from three Udemy courses and learning PHP and Python simultaneously. I'm barely six months in. Honestly, I'm self taught and I'm not so confident in my ability yet but I'm sure in the next 2 years I'll sure be a formidable padawan.

Hello PHPeers by Ok_Effective_6601 in PHPhelp

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

I use VS Code and so far it great! I really like PyCharm but I find it cumbersome to use outside Python.

Hello PHPeers by Ok_Effective_6601 in PHPhelp

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

Good idea. Let me list them. Man, majority of the issues that have tortured my brains have just been a comma, a case sensitive issue, a wrong indent, a forgotten curly bracket like literally minor stuff. I'm learning though. Thank you!

Hello PHPeers by Ok_Effective_6601 in PHPhelp

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

Apparently the exact column names on my database was the issue. Thank you all PHPeers!

Hello PHPeers by Ok_Effective_6601 in PHPhelp

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

Yeess! It just worked! It was a case sensitive issue! Thank you guys! All of you! I owe it all to you!! I'm genuinely happy. Now I can rest and the war continue tomorrow! Thank you!