I have this to do:
import psutil
import read_config
mem = psutil.virtual_memory()
print('Total RAM: ', (round(mem[0] / (1024 * 1024))), '(MB)')  # total
ram_usage = read_config.ram_usage
while ram_usage is True:
    mem = psutil.virtual_memory()
    print('Used RAM: ', (round(mem[3] / (1024 * 1024))), '(MB)', end="")  # used
The problem is that if I execute, the output is this:
Total RAM:  3949 (MB)
Used RAM:  3069 (MB)Used RAM:  3069 (MB)Used RAM:  3069 (MB)Used RAM:  3069 (MB)Used RAM:  3069 (MB)
How can I solve the Used RAM problem ? I want to print on the second line just value of used RAM, not to print the line everytime the condition is satisfied.
Thanks
 
    