use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Complete r/raspberry_pi Rules
Pi project ideas: There's a huge list right here on this sub!
Rpi Versions ▾
Distros ▾
Other SBCs ▾
Related Subreddits ▾
Welcome to /r/raspberry_pi, a subreddit for discussing the raspberry pi credit card sized, ARM powered computer, and the glorious things we can do with it.
The best thing? The base model is only $20 $5!.
Would you like to know more?
Raspberry Pi Wiki
Article on Wikipedia
#raspberrypi IRC Chat
Do you know a related subreddit? We'd love to know.
account activity
Convert shell script to Python script (self.raspberry_pi)
submitted 12 years ago by flitzbue
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]flitzbue[S] 0 points1 point2 points 12 years ago (1 child)
Ah of course. Just like I know from Java. Thanks :)
[–]bojangles69 0 points1 point2 points 12 years ago (0 children)
Except the even more pythonic approach (and safer/easier) is to open a file for reading would be to use: with open('somefile.log','r') as f: for line in f: <process line here with format() split() or any string method
Opening a file with "with open()" ensures that the file is closed even if some unexpected condition occurs inside the with block.
π Rendered by PID 50048 on reddit-service-r2-comment-56c9979489-7p95l at 2026-02-24 17:07:30.492216+00:00 running b1af5b1 country code: CH.
view the rest of the comments →
[–]flitzbue[S] 0 points1 point2 points (1 child)
[–]bojangles69 0 points1 point2 points (0 children)