How to Install Python and VS Code on MacOS

ViaByte.Net

4. Create a new file in the folder with a “.py” extension. You can do this by clicking on “File” > “New File” and saving the file with a “.py” extension.

5. Write your Python code in the new file. Here’s an example of a simple “Hello, World!” program:

print("Hello, World!")

6. Save the file by clicking on “File” > “Save” or pressing “Cmd+S” on Mac or “Ctrl+S” on Windows.

Bagikan:

Tinggalkan komentar