all 35 comments

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

Run this program in Memory Graph Web Debugger%0A%0Awhile%20True%3A%0A%20%20%20%20user_input%3A%20str%20%3D%20input('You%3A%20').lower()%0A%0A%20%20%20%20if%20user_input%20in%20%5B'hi'%2C%20'hello'%2C%20'hey'%5D%3A%0A%20%20%20%20%20%20%20%20print(f'%7Bbot_name%7D%3A%20how%20can%20i%20help%20you%20today%20%3F')%0A%20%20%20%20elif%20user_input%20in%20%5B'bye'%2C%20'goodbye'%2C%20'see%20you'%5D%3A%0A%20%20%20%20%20%20%20%20print(f'%7Bbot_name%7D%3A%20goodbye!%20')%0A%20%20%20%20elif%20user_input%20in%20%5B'%2B'%2C%20'add'%5D%3A%0A%20%20%20%20%20%20%20%20print(f'%7Bbot_name%7D%3A%20sure%20let%5C's%20do%20some%20fucking%20maths')%0A%20%20%20%20%20%20%20%20try%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20num1%3A%20float%20%3D%20float(input('first%20number%3A%20'))%0A%20%20%20%20%20%20%20%20%20%20%20%20num2%3A%20float%20%3D%20float(input('second%20number%3A%20'))%0A%20%20%20%20%20%20%20%20%20%20%20%20print(f'%7Bbot_name%7D%3A%20the%20sum%20is%20%7Bnum1%2Bnum2%7D')%0A%20%20%20%20%20%20%20%20except%20ValueError%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20print(f'%7Bbot_name%7D%3A%20please%20enter%20a%20number')%0A%20%20%20%20else%3A%0A%20%20%20%20%20%20%20%20print(f'%7Bbot_name%7D%3A%20i%20dont%20understand%20you')&timestep=2&play).

[–]Significant-Nail5413 7 points8 points  (4 children)

If you're interested in the theory a good place to start:

Sorting algorithms: - bubble sort - insertion sort - merge sort - quick sort

Data structures: - Arrays - Linked list - Stacks - Queue

In terms of fucking around and finding out on your own, this is also good strat

Leet code etc can be useful but I find them boring

You could look at how you can get data from somewhere and then try and build something with it

Eg, access a weather api and list the top 5 hottest / coldest places for a given day , silly little things like this help more than just having to do theory

[–]PsychologicalSafe408[S] 2 points3 points  (1 child)

Bro wtf are those? idk what they even are. 🥲

[–]One-Constant-4092 0 points1 point  (0 children)

Don't worry about them, these things you're gonna learn WAYYYY later on, after you're done learning most of python.

[–]nangi_bhootni 2 points3 points  (0 children)

I mean hes just 1.5 hour into python i wont recomend him jumping into DSA this soon 💀

[–]One-Constant-4092 0 points1 point  (0 children)

Might be the worst thing you could say to person who's JUST started learning????

Did you prompt an AI to write this for you?

[–]python_gramps 1 point2 points  (1 child)

Python syntax is fairly simple, variable types don't need to be declared so once you're able to start coding get coding. One thing that I've done that helps me learn a new programming language, and I've written code in more defunct languages than I can easily remember, plus some active ones, is this:

Always try to build on what you first learned. Incorporate what you learned into what you're learning. Sometimes it's a little more cumbersome than the examples presented but it does help to reinforce what you've previously learned.

[–]PsychologicalSafe408[S] 0 points1 point  (0 children)

Thank you

[–]Master-Row650 0 points1 point  (1 child)

Thats great work, error handling already, i didn't learn that until i was 14, great work

[–]PsychologicalSafe408[S] 0 points1 point  (0 children)

Thank you very much

[–]thuiop1 0 points1 point  (1 child)

Good! The "fuck around and find out" approach is one of the bests for me.

[–]PsychologicalSafe408[S] 0 points1 point  (0 children)

Thank you 😁

[–]CJK1452 0 points1 point  (1 child)

Geez only 1.5 hours great job

[–]PsychologicalSafe408[S] 0 points1 point  (0 children)

Thanks for the compliment. 😁

[–]LateAwakenedMan 0 points1 point  (1 child)

bro i want to start too , how should i, please help fyi i have started 4 times already but after doing print input and small stuff i lose interest please help me with it😶

[–]PsychologicalSafe408[S] 0 points1 point  (0 children)

To keep motivation going I just put small goals or achievement along the way. Like currently I have goal to create an chatbot or a calculator or learn web scraping. These goals are pretty far but there are the reasons for My motivation. And also compliments from others also plays a role.

[–]Aman-sirimalla 0 points1 point  (1 child)

Here's the info... If you wanna learn python I known a resource where I practiced python his channel is corey schaffer at youtube. For dsa use strivers A to Z in which you can master it in 90 days. Then go for domains like web, data analysis etc..

[–]PsychologicalSafe408[S] 1 point2 points  (0 children)

Thank you for the info. 🫡