練習問題:ユーザー入力エラー、余剰入力回数提示

6529 ワード

#!/usr/bin/env python
# -*- coding:utf-8 -*-
#

# :

'''
a = input(' :')
b = input(' :')
if a == 'sud' and b == '123':
print(' ')
else :
print(' ')
'''

# :

'''
c =1
while c <= 3:
print(c)
c += 1
'''

# : ,

'''

c = 1
while c <=3:
a = input(' :')
b = input(' :')
if a=='sud' and b =='123':
print(' ')
break
d = 3 - c
e = ' %s '%(d,)
print(e)
c +=1
'''

'''

c = 2
while c >= 0:
a = input(' :')
b = input(' :')
if a == 'sud' and b =='123':
print(' ')
break # ,
else : #
d = ' ; %s ' % (c,)
print(d) # ,
c -= 1
'''

# ,
c = 2
while c >= 0:
a = input(' :')
b = input(' :')
if a == 'sud' and b =='123':
print(' ')
break # ,
# else : #
d = ' ; %s ' % (c,)
print(d) # ,
c -= 1
else :
print(' ')