Skip to content

Forum in maintenance, we will back soon 🙂

Printing on screen
 
Notifications
Clear all

Printing on screen

5 Posts
3 Users
2 Reactions
539 Views
(@winston-thompson)
Posts: 2
New Member Customer
Topic starter
 

I've logged in to Visual Studio code to practice some examples of arithmetic operations but unable to run the code. The icon is not showing

can not run code

 Any suggestions?

 
Posted : 07/22/2023 10:35 am
Hasan Aboul Hasan
(@admin)
Posts: 1208
Member Admin
 

Hi Friend, did you install python for visual studio as shown in the lecture?

 
Posted : 07/22/2023 4:53 pm
SSAdvisor reacted
(@winston-thompson)
Posts: 2
New Member Customer
Topic starter
 

Hi Hasan, yes I did install Python as per the instructions as shown in the lecture and it worked perfectly the first time I used it.

I notice User is py    should it be cd.py or doesn't it make any difference?

 
Posted : 07/22/2023 10:31 pm
Hasan Aboul Hasan
(@admin)
Posts: 1208
Member Admin
 

The file must be ending with .py extention.

 
Posted : 07/23/2023 6:51 am
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

(@winston-thompson) So here is an example of a python file.

Filename: hello.py

print ("Hello from Python")

To execute you can type:

python hello.py

 

So from the conversation I see that you are trying to use Visual Studio Code and are trying to execute your file from it but the command icon is missing. Did you install the extension for Python as suggested in the training? You can access the extension panel on Code by using CTRL-SHIFT-x and from there you can install the python extension. The one you want is titled "Python Extension Pack" and is currently at version 1.7.0.

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 07/23/2023 9:42 pm
Share: