Sign in
go
/
website
/
6e1dd4f0068b6905ecae96304872ef52928af6b1
/
.
/
_content
/
talks
/
2013
/
go4python
/
dyntyp.py
blob: fa9e4eadc88eb939bf994b1a8872752fe8469bdd [
file
] [
log
] [
blame
]
#!/usr/bin/python
import
random
name
=
'pythonista'
# This code only works half of the time.
if
random
.
random
()
>
0.5
:
print
'hey '
+
name
+
', you win!'
else
:
print
'sorry '
+
nane
+
', you lose'