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