l=[] T= int ( input ()) while ( 1 <=T<= 10 ): for i in range (T): str1= input () l.append(str1) break l_len= len (l) for s in range (l_len): even= "" odd= "" word=l[s] w_len= len (word) for m in range (w_len): if m% 2 == 0 : even=even+word[m] else : odd=odd+word[m] print (even,odd)
age = 0 class Person : def __ init__ ( self , initialAge ): if ( initialAge < 0 ): self . age = 0 print ( "Age is not valid, setting age to 0." ) else : self . age = initialAge def amIOld ( self ): if self . age < 13 : print ( "You are young." ) elif self . age >= 13 and self . age < 18 : ...
Comments
Post a Comment