0

String triangle expansion method with boundary conditions 4<=length of S<=50

8th Apr 2020, 3:29 PM
Gopi
Gopi - avatar
3 Answers
0
def _input(inp_str): try: assert len(inp_str) <= 50, print("More than 50 chars typed") return inp_str except Exception as e: print("string limit is ok") st = input() _input(st) please spend some on time learning assert and exception handling in python.
8th Apr 2020, 3:49 PM
RKK
RKK - avatar
0
error
8th Apr 2020, 4:20 PM
Gopi
Gopi - avatar
0
https://code.sololearn.com/chYyvA68FB20/?ref=app try to input string which is less than 10 and which is greater than 10
8th Apr 2020, 4:26 PM
RKK
RKK - avatar