Answer the question
In order to leave comments, you need to log in
The number is displayed 4 times, but it should be 1?
I work with files and that's when I multiply the number to me it is displayed 4 times. Of course, I understand that the problem is probably how I multiply, but tell me how to multiply so that the number is multiplied by 4. And not to show 4444
num = open('num.txt', 'r')
g = num.read(1)
fine = g*4
print(fine)
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