Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to use "while" within the command in -c option of python?

Reply
Thread Tools

How to use "while" within the command in -c option of python?

 
 
Herman
Guest
Posts: n/a
 
      10-12-2012
python -c "import os; while True: print('hello')"
File "<string>", line 1
import os; while True: print('hello')
^
SyntaxError: invalid syntax
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: How to use "while" within the command in -c option of python? Etienne Robillard Python 11 10-13-2012 10:09 PM
Re: How to use "while" within the command in -c option of python? Ned Deily Python 0 10-13-2012 02:17 AM
Re: How to use "while" within the command in -c option of python? Herman Python 0 10-13-2012 12:55 AM
Re: How to use "while" within the command in -c option of python? Dave Angel Python 0 10-13-2012 12:29 AM



Advertisments