#coin flipper
import random
tailcount = 0
headcount = 0
totalcount = 0
while totalcount != 100 :
totalcount += 1
#print 'This is...', totalcount, 'Flip'
x = random .randrange ( 2 )
if x == 0 :
headcount += 1
#print 'The result is Head'
elif x == 1 :
tailcount += 1
#print 'The result is Tail'
print 'We had' , headcount, 'Heads'
print 'And' , tailcount, 'Tails'
print 'Coin was flipped' , totalcount, 'times'
raw_input ( '\n \n P' ) s here
I2NvaW4gZmxpcHBlcgppbXBvcnQgcmFuZG9tCnRhaWxjb3VudCA9IDAKaGVhZGNvdW50ID0gMAp0b3RhbGNvdW50ID0gMAp3aGlsZSB0b3RhbGNvdW50ICE9IDEwMDoKICAgIHRvdGFsY291bnQgKz0gMQogICAgI3ByaW50ICdUaGlzIGlzLi4uJywgdG90YWxjb3VudCwgJ0ZsaXAnCiAgICB4ID0gcmFuZG9tLnJhbmRyYW5nZSgyKQogICAgaWYgeCA9PSAwOgogICAgICAgIGhlYWRjb3VudCArPSAxCiAgICAgICAgI3ByaW50ICdUaGUgcmVzdWx0IGlzIEhlYWQnCiAgICBlbGlmIHggPT0gMToKICAgICAgICB0YWlsY291bnQgKz0gMQogICAgICAgICNwcmludCAnVGhlIHJlc3VsdCBpcyBUYWlsJwpwcmludCAnV2UgaGFkJywgaGVhZGNvdW50LCAnSGVhZHMnCnByaW50ICdBbmQnLCB0YWlsY291bnQsICdUYWlscycKcHJpbnQgJ0NvaW4gd2FzIGZsaXBwZWQnICwgdG90YWxjb3VudCwgJ3RpbWVzJwpyYXdfaW5wdXQoJ1xuXG5QJylzIGhlcmU=
compilation info
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/py_compile.py", line 117, in compile
raise py_exc
py_compile.PyCompileError: File "prog.py", line 19
raw_input('\n\nP')s here
^
SyntaxError: invalid syntax
stdout