#đź”’ Funny Problem

67 messages · Page 1 of 1 (latest)

wraith pivot
#

When I write any code and run it this happened and it can’t run

spiral foxBOT
#

@wraith pivot

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

wraith pivot
#

I just want to write any code and run it then it’s work

weak dove
#

send what it says in the terminal (the whole thing, as text)

wraith pivot
#

PS C:\Users\Admin\Ammar1.py> python -u "c:\Users\Admin\Ammar1.py\yaseer.py"

#

i just wrote print("hello") and thats what i got

#

PLZ HELP ME GUYS

#

if i type ANYTHING in vs code i got this message

rapid aspen
#

Beep boop

spare lodge
wraith pivot
#

I change settings to automatically terminal not output

strange sorrel
#

might have to do with the folder called Ammar1.py?

spare lodge
#

it's strange that you neither get any output nor error message

wraith pivot
#

I solve the problem but now I can’t run it until I press ctrl f5 if I use the run button it won’t work

#

How I can solve this one

strange sorrel
#

simple, run it through the terminal

wraith pivot
#

That’s I do

#

It won’t work until I press ctrl f5

#

If I use the button it won’t work

strange sorrel
#

py file.py or
python file.py or
python3 file.py

wraith pivot
#

When I change the code and press run button nothing happened but if I press ctrl f5 it work

#

Like I change the name from ammar to Omar and nothing happened

#

And it print the previous name

#

Not the new one

#

Until I press ctrl f5 it will run it with the name

strange sorrel
#

you need to save your code before running it

#

ctrl + s

#

see this white dot by your file? this means its unsaved

wraith pivot
#

Save it everytine before running?

#

Time*

#

Or it’s only 1 time?

#

Because I used to use vs 2 years ago it wasn’t like that

#

It works but I need to save it every time?

#

It wasn’t like that I think

#

There isn’t like auto save settings or something like that

pliant sail
strange sorrel
#

auto save does exist, but many programmers, me included, dont advise using the auto saving feature, it causes problems every now and then

wraith pivot
#

I believe 2 years ago when I used to use vs it was auto save

#

So any change I want to do it after I finished it I save it?

strange sorrel
#

yes

#

i save the file after every line i write just out of habit, very good incase your computer or IDE decides to crash in the middle of coding

wraith pivot
#

Yea I get it

#

But for me as a beginner auto save it better I think

#

But I want to ask you question

strange sorrel
#

again, i advise against the usage of auto save

wraith pivot
#

I wouldn’t say I am beginner cuz I used python for months 2 years ago

strange sorrel
wraith pivot
#

What the best way to revision the informations

#

Like what do you recommend

strange sorrel
#

practice, practice, practice

wraith pivot
#

Make sense

#

lol

strange sorrel
#

gonna steal daggers response from another post since its very good

wraith pivot
#

I think my problem now is with the syntax

#

So I will practice again

strange sorrel
#

try to make a simple terminal based calculator to freshen up your memory, if you dont remember the syntax you can search it up

wraith pivot
#

I appreciate your help guys @pliant sail @strange sorrel ❤️

spiral foxBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.