Home > other >  Back to the federation:
Back to the federation:

Time:12-22

Def hui () : the count=0 str1=input (" please enter a words: ") for I in range (len (STR) - 1) : if str1==[I] str1 [len (str1) - 1 - I] : count +=1 if the count==len (str1) - 1: print (' federation is back) else: print (' don't last federation)

2. Def hui (string) : list1=list (string) list2=reversed (list1) if list1==list (list2) : return 'federation is back else: return' is not back to the federation '
  • Related