I was looking at the code snippets, specifically "Petals around the Rose” and I wanted to see how it runs, so I copy, pasted and saved the file in my text editor as Petals and now I am trying to figure out how to run the code. As always I know this is a day one question, but any help would be appreciated

Thanx in advance
Lanier

go to the directory where you saved the file (in the command line) and type:

python petals.py

if your file is called petals.py

This is trusting you have python install on your pc. Im guessing you don't since if you did then you could simply double click the file and it would run, if your on windows.

If your on linux you need to change the access rights via chmod to 755 to be able to run it, then just double click and click run in terminal.

Chris

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.