why does the python3 command not work on my console when i input the exact line from the tutorial

Olisa Ezeh 0 Reputation points
2024-04-29T19:52:43.58+00:00

the instruction says:

"When you start a program by using python3, you give it the name of the file to start. You can also give it a set of arguments: data that the program will have access to when running. Here's how that can look:"

i attempted to type python3 in my own console and it drew yellow squiggly lines underneath

This question is related to the following Learning Module

Visual Studio Training
Visual Studio Training
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Training: Instruction to develop new skills.
12 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 1,550 Reputation points Microsoft Vendor
    2024-04-30T05:28:20.77+00:00

    Hi Olisa Ezeh,

    Thank you for reaching out to Microsoft Q & A forum.   

    I've completed the tutorial exercise on Write your first Python programs module, and I found the instructions straightforward and easy to follow. 

    For the command line-input:  1. Launch Visual Studio Code. 

    2.Navigate to the desired folder where you wish to create your Python program. 

    3.Within Visual Studio Code, select the option to create a new file. 

    4.Name the new file as "backup.py". 

    5.Proceed to write the Python code as per the instructions provided in the tutorial exercise within the code editor. 

    6.Save the file (Ctrl + S). 

    7.Execute the code by running the "backup.py" file. back

    For the user input: 

    1.Open Visual Studio Code. 

    2.Go to the folder where you want to create your Python program. 

    3.Create a new file and name it "input.py". 

    4.Write the Python code according to the exercise guidelines provided in the tutorial. 

    5.Save the file (Ctrl + S). 

    6.Execute the code by running the "input.py" file.input

    By diligently following these steps, the issue was effectively resolved. Each action was meticulously executed, ensuring precision and successful resolution. 

    If you encounter any future issues, please feel free to contact us, and we will be pleased to assist you further.   

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.  

    Thank you. 

    0 comments No comments