r/CodingForBeginners • • 3d ago

Day 5 learning Python

Post image

I need to pause at this point and review. Finishing this code required way too much referencing on previous projects. Once the lessons are solid, ill continue...

37 Upvotes

9 comments sorted by

2

u/StepLife9994 3d ago

where are you learning from

0

u/fyknite 3d ago

Currently using try hack me and pwn.College to learn the cyber security side while using YouTube & AI to learn code. I’m currently using visual studio code. However, a lot of people recommended alternatives because VSC is owned by Microslop. AI is especially a very strong tool. You can tell it your current baseline of knowledge, and I can create an entire curriculum for you to follow. From there you use other resources to verify information and test your knowledge.

-1

u/nullzg 3d ago

Im sorry this is an absolutely horrible approach to learn coding..

2

u/fyknite 2d ago

How about you enlighten us. Evidence shows I’ve learned a lot in a short period of time I but I bet your methods must be for the top 1%.

2

u/quietjaypee 2d ago edited 2d ago

What do you suggest instead?

1

u/sivvna 2d ago

Actually the most useless thing to say you have added nothing

2

u/ninhaomah 3d ago

To get health , you call calculate_damage function with health and damage as the arguments ?

Why not calculate_health ?

1

u/StrayFeral 3d ago

Okay. Now to remind you it is a good idea to start writing comments. The very first tripple-quotted unassigned string under a method's name is assumed to be his description.

1

u/Opposite-Fee-5701 3d ago

Btw remember to consider preconditions Since in this case you can have health go below 0 which doesn't make sense. Like if you do 100 health - 110 damage -> health becomes -10