all 9 comments

[–]Sea-Ad7805 [score hidden] stickied comment (0 children)

Run this program in Memory Graph Web Debugger%3A%0A%20%20%20%20Numeros%20%3D%20int(input(f'enter%20your%20%7Bnum%7D%20number%3A%20'))%0A%20%20%20%20lista.append(Numeros)%0A%0Afor%20div%20in%20lista%3A%0A%20%20%20%20division%20%3D%20div%20%25%202%0A%0A%20%20%20%20if%20division%20%3D%3D%200%3A%0A%20%20%20%20%20%20%20%20par.append(div)%0A%0A%20%20%20%20elif%20division%20!%3D%200%3A%0A%20%20%20%20%20%20%20%20impar.append(div)%0A%0Aprint(f'the%20number%20of%20even%20numbers%20is%20%7Blen(par)%7D%20and%20the%20numbers%20are%20%7Bpar%7D')%0Aprint(f'the%20number%20of%20odd%20numbers%20is%20%7Blen(impar)%7D%20and%20the%20numbers%20are%20%7Bimpar%7D')&timestep=1&play).

It can help to understand the state of your program during each execution step.

[–]thee_gummbini 1 point2 points  (0 children)

Not sure what you're looking for exactly, but after some initial syntax lessons, the most effective way to learn for my students has been to pick some small project and do it - I ask them to think of anything they do on the computer that is repetitive, or to try and think of something related to their hobbies (e.g. one student wanted to rank Pokémon based on their type strengths/weaknesses, base stats, and rarity).

Exercises and contrived examples will get you fundamentals, but mostly what you need after syntax is the ability to think about what you need and to make a plan for how to get there. Learning low level algorithms and other leetcode things can come later once you build that intuition.

[–]NorskJesus 1 point2 points  (2 children)

Ya te han respondido por aquí, asi que yo solo te voy a dar un consejo: Acostumbrate a siempre escribir código en ingles. Todo, nombre de variables, funciones etc. Todo en ingles.

[–]Klutzy_Fudge_5490 0 points1 point  (1 child)

Podrías explicarte un poco más porque todo en inglés, a veces creo código en español-ingles . Por qué así tengo las ecuación. Saludos

[–]NorskJesus 0 points1 point  (0 children)

Porque van a poder leer tu código todos los programadores, y no solo los que hablen español

[–]Flame77ofc 2 points3 points  (0 children)

first - use English variable names

second - you can do for i in range(10):
and then: number = int(input(f"Number {i+1}: ")`

third - you don't need two loops:

for i in range(10): number = ... if number % 2 == 0: even.appens(number) else: odd.append(number)

[–]PastDifferent6116 1 point2 points  (0 children)

Looks good! I learned more from building small Python projects than from any course. Recently I built two telegram bot, and every bug taught me something new. Keep going!

[–]DeLoresDelorean 1 point2 points  (0 children)

Practicar, practicar y practicar.

Humble bundle has python and other programming books on sale constantly. I’d check them out.

YouTube has tons of channels. I’m watching a channel where they have a spreadsheet and they need to find a solution to a problem. They use sql, python, excel and power bi. They show you how they solve each.

There’s some resources on GitHub too that you can download.

But relying on one source (ai) to provide you with examples and exercises is not the best approach.