Last active
April 26, 2021 14:17
-
-
Save wcspoiler/d13a527d7688f81e7d734e6c3fe1d09d to your computer and use it in GitHub Desktop.
Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import argv | |
v1 = argv | |
print ' Programm version: %s' %v1 | |
prompt = ' \' Stroka vvoda \': ' | |
print 'Kak tebya zovut?' | |
name = raw_input(prompt) | |
print 'Skolko tebe let?' | |
age = raw_input(prompt) | |
print 'Kakoy u tebya rost?' | |
hite = raw_input(prompt) | |
print ''' | |
Itak, tebya zovut %s, tebe %s let, | |
u tebya rost %s sm. | |
''' % (name, age, hite) | |
print ' Prodoljit? "y" / "n" ' | |
while True: | |
x = raw_input(prompt) | |
if x in [ 'y' ]: | |
while True: | |
print ' %s - LOH! ' %name | |
if x in [ 'n' ]: | |
print ' Konec ' | |
break | |
else: | |
print 'Povtorite vvod' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment