#πŸ”’ Visual Studio Help

27 messages Β· Page 1 of 1 (latest)

exotic spade
#

Hello,

I am trying to run my Python code in my Visual Studio but it is not running it and instead just outputting filepath in my terminal. Can someone explain why and help to remedy this?

low oasisBOT
#

@exotic spade

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.

narrow token
#

It's running and waiting for input

#

Type in a weight

exotic spade
#

it never prompts

narrow token
#

Because you don't give it one.

exotic spade
#

but when i run it in python env then the code works properlyu

narrow token
#

Put a string into input()

exotic spade
unkempt bluff
#

Why are you doing int(input( why not just

#

Weight = input(β€œwhat is your weight?: β€œ)

exotic spade
#

because when I put in the number I want it as an integer and not a string

#

is that not correct?

#

That is besides the point though as my code is not running regardless :S

#

If i try dividing the weight as a string then won't I get an error?

narrow token
#

Restart the script

#

You probably want to prompt for height as well

exotic spade
#

that

#

worked

#

after I prompted for height

#

but why was it giving me file paths instead of errors when I was running it before?

#

Thanks a ton though

narrow token
#

Your run command probably pasted the command into the terminal

exotic spade
#

Gotcha. Thank you

low oasisBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.

#

πŸ”’ Visual Studio Help