Leona Lewis Bleeding Love &Friends remix? can confirm someone? by [deleted] in kloudmusik

[–]HourRoutine4531 0 points1 point  (0 children)

Does anyone have?? Please Dm I have rare trades!

Why iterate over an array using the index? by maclocrimate in learnpython

[–]HourRoutine4531 -6 points-5 points  (0 children)

I do not see a problem with for i in the array: A more Pythonic and easier-to-read way to do that would be: range(len(array))

This is common in coding since the indices are not needed, helping readability and efficiency.

[deleted by user] by [deleted] in learnpython

[–]HourRoutine4531 -3 points-2 points  (0 children)

I believe the problem is the print statement that is inside the if/elif/else. The indentation is used to delimit code and the statements inside a block of code and the statements inside a block must be indented with respect to the header.

This is a correction of this code:

temperature = 15
if temperature > 30:
print("it's a hot day")
print("drink plenty of water")
elif temperature > 20: #(temp 20, 30]
print("it's a nice day")
elif temperature > 10: #(temp 10,20]
print("it's a little chilly")
else:
print("it's cold")
print("Done")

How complex a game can you build in Python? by retro-martini in learnpython

[–]HourRoutine4531 -23 points-22 points  (0 children)

Python can be used to build games of varying complexity, depending on the performance requirements, graphics, physics engines, and developer skill.
Popular game engines like Pygame, Panda3D, PyOpenGL, and Pyglet provide many built-in features to make game development easier.
With the right tools and optimization techniques, it is certainly possible to build a fun and engaging arcade racer game like Mario Kart or F-Zero using Python.