LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2011, 01:15 AM   #1
reojfist
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
complete python/linux newbie


I have backtrack 5 installed. I am having problems getting my wifi up and running, but direct chord link will suffice for now..

what im trying to solve right now is that python refuses to open. I try "open python" in the konsole, but nothing works.
 
Old 11-01-2011, 01:33 AM   #2
reojfist
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
nevermind
 
Old 11-01-2011, 01:37 AM   #3
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
ok i would suggest you read a few beginners guides to python programming in linux.
http://www.python.org/about/gettingstarted/
http://sthurlow.com/python/

an extremely basic python program would go something like this..
Open up a text editor (vi, nano, kate, gedit etc)
and add the following:
Code:
#!/usr/bin/python
print "Hello World"
Save this as helloworld.py

Then drop to a console cd to where you saved the file, and
Code:
chmod +x helloworld.py
Then run it by executing in the console:
Code:
./helloworld.py
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete newbie in Linux! prajit_matrix Linux - Newbie 40 11-05-2009 11:30 PM
LXer: Review: Programming in Python 3: A Complete Introduction to the Python Language LXer Syndicated Linux News 0 01-26-2009 04:50 AM
Complete Linux Newbie in Need of Help slickhare Linux - Newbie 12 11-06-2006 12:03 AM
Complete Newbie to Linux Archaic MEPIS 13 07-03-2005 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration