0
String triangle expansion method with boundary conditions 4<=length of S<=50
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.
0
error
0
https://code.sololearn.com/chYyvA68FB20/?ref=app
try to input string which is less than 10 and which is greater than 10