Skip to content

Commit

Permalink
2to3 print()
Browse files Browse the repository at this point in the history
works with python2 and python3.
  • Loading branch information
markushx committed Feb 17, 2015
1 parent 87a54d3 commit 344fa8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/python/count.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

# Simple example script that counts to 10 at ~2Hz, then stops.
for count in range(0, 10):
print count + 1
print(count + 1)
stdout.flush() # Remember to flush
sleep(0.5)

0 comments on commit 344fa8d

Please sign in to comment.