135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
Orrr we can just do
num=int(input("Enter the value of num"))
if(num<0):
print("number is negative")
elif(num>0):
print("number is positive")
else:
print("number is zero")
So we can put an else branch right in our code
Hey everyone 👋
I'm Muzaffer from Turkey.
I've been learning Python for about 2–3 months and trying to improve every day.
I'm still a beginner, but I'm really interested in programming, automation, and building small projects.
Happy to be here, and I’d love to learn from you all 🙂
How much by learning 10hours a day for 2 months or less ?
Читать полностью…
the ai made a self variable which after is saved into the instance variable... wtf
Читать полностью…
Why .. cant?
Definitely not ..1k but atleast ! Something ..
Is it worth becoming a carpenter if most furnishing is produced industrially?
Читать полностью…
ah yeah i didn't seen... DeepOS... ok seems like u copied DeepSeek
Читать полностью…
Which is widely considered the better approach. However, Python recommends not to use parentheses in conditions unless necessary or when it improves clarity. It also encourages using spaces around the equal sign for assignments.
Читать полностью…
it depends a looooooooooooooot on the context it's working on, I bet it found some previous shitty-human-written code
¯\_(ツ)_/¯
self = super().__new__(cls)
self._db = await aiosqlite.connect(db_path)
self._db.row_factory = aiosqlite.Row
cls._instance = self
So you think you can learn programming and get a paid job in less than two months?
Читать полностью…
I need to make 1000$ before July, I'm really sick, I think it's the only way to get it.
Читать полностью…
Putting the print that only occurs once in a function and called it only once directly after the functions' definition is ... unnecessary.
Читать полностью…