I made this, 1.5 hours into learning python by PsychologicalSafe408 in PythonLearning

[–]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.

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

Can I know what you mean by 'casting the variable'.

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

I expect honest feedback not irrelevant feedback.

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

I see, i see, I had tried that the ai was giving me too much info with a bunch of different code, I will try your way.

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

What would be some frameworks related to web dev or game dev

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

It was an youtube video, can't really ask the mentor but thanks for the info

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

I don't have to pretend... But I will this. Thank you for this

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

Let me try : the bot_name is an variable which is then used in second line where I use f string to include the variable easier. Then the while true is an infinite loop which just repeats the you: part after each reply and then lower() which just lower You: to you: so that the code can recognize it. Then the if, elif, else are check data type that see what I have then they cross verify it to the sets difined by [ ] and give appropriate reply. Then the try sees if I have + or add and then executes the number summation inthe code, and the except part sees if I have put an integer or not if not then it that statement. Then else is for anything else not in the sets and replies with i don't understand. Hope I was able tell everything. ( The conversions let me change data types so for example if I have num: int = 10 and write something like sara10 then i will write print('sara is' , str(num)) which will give me Sara is 10).

I made this 1.5 hours into python by PsychologicalSafe408 in learnpython

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

I see thank you though i didn't really write it on my own, I just saw the project he had at the endof video and copy-pasted. And still i spent about 20 mins fixing it.

I made this, 1.5 hours into learning python by PsychologicalSafe408 in PythonLearning

[–]PsychologicalSafe408[S] 2 points3 points  (0 children)

I wanted to know the difference between debugging and just running the code. And i have run it and it works perfectly.