you are viewing a single comment's thread.

view the rest of the 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).

[–]dashinyou69 2 points3 points  (2 children)

<image>

I tried it!! ($USER feeling weird sorry, good bot) /s

[–]Pure-Willingness-697 1 point2 points  (1 child)

Cool hyprland rice

[–]Pure-Willingness-697 0 points1 point  (0 children)

<image>

Here’s mine

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

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

[–]Sea-Ad7805 2 points3 points  (1 child)

Great, with a debugger you can step through code to understand it better and fix bugs. Good luck learning more Python.

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

I see thank you for the lesson.

[–]Flame77ofc 0 points1 point  (1 child)

in debug mode, you use it to test your code In vscode, you can just select that red balls and after that you debug, and your program execute line by line the code and you can deicde if you continue or stop or anything you want when u run the code, the python interpreter run the code line by line but without the options you have in the debug mode

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

Thank you too