Answer the question
In order to leave comments, you need to log in
How to loop for functions?
Hello! The question is next.
There is a function that reads data from a file.
Here she is:
def getfreq():
freq = open('somefile.txt', 'r')
freqline = freq.readline() #читаем строку из файла
freqnumber = int(freqline) #переводим строку в число
return freqnumber
freq = getfreq()
func2 = getsomething(freq)
func3 = getsomething2(func2, freq)
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question