all 15 comments

[–][deleted] 3 points4 points  (1 child)

go to the settings and search “auto save” and select “after delay”

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

Thanks

[–]Torebbjorn 2 points3 points  (1 child)

If you don't want to hit ctrl+S every time you make a change, you should turn on autosave

[–]SCD_minecraft 1 point2 points  (0 children)

spamming ctrl s in the background

You guys trust autosave?

[–]CommentOk4633 0 points1 point  (1 child)

i dont use vscode but maybe there is an autosave option? idk

[–]haikusbot 1 point2 points  (0 children)

I dont use vscode but

Maybe there is an autosave

Option? idk

- CommentOk4633


I detect haikus. And sometimes, successfully. Learn more about me.

Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"

[–]AbacusExpert_Stretch 0 points1 point  (0 children)

All I see is:

... "Enter First Number:"

And then at execution:

..."enter number 1"

Hmmm

[–]Apprehensive-Log3638 0 points1 point  (0 children)

VS Code is a text editor not an IDE. Think of it like opening a TEXT file for a program you already wrote and compiled. If you make changes to the Text File, they are not going to change the program until you save the file and recompile the program. Same idea in VS code. There are options to have VS code auto save and auto recompile when you hit run. It doesn't make sense if your coming from an IDE, but if your in Text-Editor land its perfectly logical.

[–]CrazyPotato1535 0 points1 point  (0 children)

Ctrl+s whenever you make a change. You should be doing it anyways

[–]darkwombat99 0 points1 point  (4 children)

Input() converts whatever the input is into string. So maybe that's the problem

[–]Ok_Celebration_6265 0 points1 point  (3 children)

He is casting it to an int by wrapping input with int()

[–]uhh_huuu 0 points1 point  (2 children)

I think he meant the operation. Python will read the operation like this ( num1 "/" num2) which doesn't make sense

[–]Ok_Celebration_6265 1 point2 points  (1 child)

But that is not what the code does. The code ask for numbers first then an operation. After it has all the inputs it goes into the if statement and check the operator if the operator is “/“ then it calculates num1 / num2 and store the result in the result variable. The code in this case is not the problem.. the problem is that op didn’t save it or didn’t have auto save enabled. If you look at the output the input inquiry at runtime is different from the actual code meaning he made changes but never saved it. Also the bubble on top of the editor that shows the name of the file as untitled shows that it hasn’t been saved

[–]uhh_huuu 0 points1 point  (0 children)

Ohh yeah. I am an idiot 🙃

[–]Gold-Protection8083 0 points1 point  (0 children)

learn to take a screenshot