0
How can I record the print values?
I want to record the values of this line "print(indicator)". So I would be able to get the max value and print the biggest word of the input. Look at this code below: txt = input() txt_list = list(txt) indicator = 0 for c in txt_list: indicator += 1 if c == " " or c == ",": indicator -= 1 print(indicator) #big_word = max(record) indicator = 0 :D https://code.sololearn.com/cxBWLMvBt2eg/?ref=app
1 Answer