Sign in
go
/
talks
/
b88df1b0d81c57686e93202503e1d9236efb8bd2
/
.
/
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'