Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Beginning Python user moving from C++ basic questions
#2
You need to write the data into a .py file. Python is an interpreter language. So for example, run the command in terminal "touch test.py", "cat test.py", then type
Code:
v = 3
v = v + 1
print v
End the cat, then type "python test.py"

And it will run XD
Reply


Messages In This Thread
RE: Beginning Python user moving from C++ basic questions - by Rhynorater - 01-02-2013, 08:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Help Dεlluzion 3 1,793 09-30-2019, 12:59 AM
Last Post: samsmith001
  Simple Python Python Compiler Canoris 21 8,435 06-01-2011, 06:30 PM
Last Post: Filefinder
  Python 2 vs 3? Jake 8 2,251 12-11-2010, 04:13 PM
Last Post: Bursihido
  Python help Kharnage 2 761 02-12-2010, 09:07 PM
Last Post: Kharnage
  "==" and "is" in Python Canoris 1 749 02-07-2010, 03:55 PM
Last Post: uber1337

Forum Jump:


Users browsing this thread: 1 Guest(s)