i wan to print the variable "ln" in the same line (overwriting the old output) but it doesn't seem to work before an if statement i tried this solution solution1 but it didn't workout
i have the following code :
if smtn == "othr":
#lines variable reads a file line by line
for ln in lines:
#i tried this solution
print("Line Is : " + ln , end="\r", flush=True)
if var0 == "valu0":
#do something
elif var1 == "valu1":
#do something
elif var2 == "valu2":
#do something