Sign in
go
/
website
/
267f6b2af39434a3c69173c635ae7252815845c7
/
.
/
_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'