跳到主要内容

r/learnpython


Logic building and pattern recognition in python
Logic building and pattern recognition in python

I can't see any solution to an easy beginner question in my mind please somebody help every tip will help me a lot you guys helped me a lot in my previous problem kindly help me 🙏😭

5 17 转到评论

Advertisement: Climb the leaderboard with best-in-class gear that sets the foundation for happier, healthier play.
Climb the leaderboard with best-in-class gear that sets the foundation for happier, healthier play.
  • Aeron Gaming Chair, Size C - Large
    25% 折扣
  • Motia Gaming Sit-to-Stand Desk, 29" x 58" in Black Infiniti
    20% 折扣
  • Sayl Gaming Chair
    20% 折扣
  • Coyl Gaming Desk
    20% 折扣
  • Vantum Gaming Chair in Black/Flare
    20% 折扣
  • Embody Gaming Chair in Black/White
    25% 折扣


Do not understand "for i in range()"
Do not understand "for i in range()"

I'm very new to Python in particular and programming in general.

I'm currently watching a CS50's "Introduction to Python" course and reached the "for i in range(x)" loop.

And I can't seem to understand it. I understand how it works and what it does, but I can't understand, *why* it does that.

Like, why "i" becomes each of the numbers in the set range? What happens behind this command? Why does this whole command behaves the way it does?

I'm sorry, maybe this question is dumb, maybe I am simply missing the point, but if anyone could explain to me in a simple way, I would greatly appreciate it

143 95 转到评论

General question for a newbie
General question for a newbie

Hello, I just recently joined here out of suggested by r/Python subreddit to ask for help.

To put it short im complete new to python, only learned a few bits of code such a bools, making strings, some math, values, and programming an answering bot.

Any recommendations from anyone here? Especially for someone who wants to get hands on with twch and robotics using Raspberry.pi? Or just keep my pace?

2 4 转到评论