R
R
r1mple2020-05-13 01:46:18
Python
r1mple, 2020-05-13 01:46:18

How to change only one part of a string?

I am sure that the question is not quite correct, but in general the essence is that I need only one part of the line to change on the screen.
Let's say it was written: Time has passed - 1s.
And only seconds changed, but the phrase "Time has passed" itself did not change its line.
Explained very vaguely, but I hope you understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@vsenafokse, 2020-05-13
@vsenafokse

time = 1
print('Время прошло - ' + str(time) + 'с'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question