(Jun-21-2017, 10:45 PM)zivoni Wrote: I would guess that problem is withwhile len(str1) < 10: str1 = str1 + ""Your first str1 has length 2 and adding empty string does not increase it, so its infinite loop ...
You probably wanted to use
str1 = str1 + " " # notice space inside quotesYou should check basic string formating and perhaps zip function - you could use constructs like
for ts, fore in zip(tsv, forecast): print("{}{:10}{:10}".format(ts, fore, ts - fore))to shorten your code.
Thank you very much for your answer! The problem was in
str1 = str1 + " " # notice space inside quotes