Skip to content

Instantly share code, notes, and snippets.

@wcspoiler
Last active April 26, 2021 14:17
Show Gist options
  • Save wcspoiler/d13a527d7688f81e7d734e6c3fe1d09d to your computer and use it in GitHub Desktop.
Save wcspoiler/d13a527d7688f81e7d734e6c3fe1d09d to your computer and use it in GitHub Desktop.
Test
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