Is there any way to replace certain parts in a string of text with different text? Like this:
# This is not a functioning code, the actual meaning is totally different from what I'm trying to depict text = 'This is a line of text' print text # shows "This is a line of text" for all 'is' in text: # <=== fake code, just showing you what I want :3 replace 'is' with 'is not' print text # shows "This is not a line of text"
and I also want to know how to make something that changes without making more lines. What I mean is that, say you have a countdown timer. This may be your output:
01:00 00:59 00:58 00:57
... and so on. I want to know how to do something like this:
01:00 <--- This 01:00 changes to 00:59 on the same line
Edited 5 Years Ago by LogicallyInsane: n/a