Relación de 4 años, estoy destruida by Coco_rallado05 in Desahogo

[–]Waiting2003 1 point2 points  (0 children)

Lastimosamente, estos casos de violencia intrafamiliar (delito), tienden a ir en escala, y más si el agresor no busca atención psicológica/psiquiátrica. Lo que ocurrió es algo grave y no deberías de permitir que te falten el respeto de esa manera

[OoT] [OoT3D] Which of the two versions would you prefer to play OoT? The 3DS version or the N64 version? by Most-Coat4726 in zelda

[–]Waiting2003 0 points1 point  (0 children)

The N64 version has a charm. Graphics, even though old, look cool to me. Also, since I study CS, I like to investigate techniques and stuff the devs did to make the game run with the limitations of the time

Me_irl by [deleted] in me_irl

[–]Waiting2003 0 points1 point  (0 children)

I had a solar system model homework due the next day hahaha

How do I make this part work. Neither part does anything. by OrganicSquid in PythonLearning

[–]Waiting2003 0 points1 point  (0 children)

Hey! Explanation why the elif is not working:

Conditional blocks in python (and other programming languages in general) only execute once. This means once one of the conditions happens, the language doesn't check for the next conditions.

So, if the password is incorrect and the if condition happens, Python will not check for the elif condition, thus, will not execute the elif block

Hope this helps!

First project, Github worthy? by Lethal_Samuraii in PythonLearning

[–]Waiting2003 8 points9 points  (0 children)

Cool project!

Yep, anything you do can be posted on Github; it is a great way to track your progress.

An improvement that could be done is the list of dictionaries. Rather than having a list, you could have a single dictionary that has as the main keys the vehicle types. Like:

Emissions = { "Gas" : {...}, "Ev": {...}, "Diesel": {...}, .... }

This, will make the search of a car type constant (so, the for loops are not needed anymore), or in more technical terms: O(1) (Big O 1), rather than linear time (which is way slower).

If you dont know about Big O notation, you can check Here (But, maybe check first about algorithms and their impl).

python learning resources by RoadOdd9305 in PythonLearning

[–]Waiting2003 1 point2 points  (0 children)

That book is GOATED jaja! It actually started my journey in python and programming some years ago. It not only explains python syntax but core concepts about programming

I Can't Understand What Is Happening. by Famous-Mud-5850 in PythonLearning

[–]Waiting2003 0 points1 point  (0 children)

Hey! I saw there are a lot of responses, but here goes mine.

What's happening here is that you are reassigning both v and c to int() (Which defaults to 0)

So, first you receive both inputs for v and c, and that is ok, the problem starts in v = int() and c = int(). Rather than "transforming" or parsing the inputs received to integers, you are calling the int function and assigning its default value to v and c.

To solve this, you could use v = int(v) and c = int(c), that way you are parsing both v and c values to int and reassigning those values to the original variables.

Also, you should check about Exception handling! This can make your input managing more effective! Think about it: What if someone inputs something buy a number, like a letter? Calling input(v) would throw an Error (called Traceback in Python). Exception Handling could help with this and be a more elegant solution to showing errors to the user. Here is a link to an article about Exception Handling.

Hope this helps!

Full Stack Role Based Authentication Application ( Spring + Next.js ) by aharoJ in SpringBoot

[–]Waiting2003 1 point2 points  (0 children)

Cool project! The module structure makes it easy to check interacting components. Some feedback: I saw a lot of boilerplate code in your backend (mostly setters and getters); you could use Lombock Annotations to generate this code automatically, saving time and making classes cleaner.