Jul-26-2018, 01:02 PM
Thanks dageci
You mean like this ?
Any other suggestions please?
Astrikor
You mean like this ?
import numpy as np import os def clearscr(): os.system('cls' if os.name=='nt' else 'clear') # in your code to clear the screen call this function clearscr() myarray = np.zeros([4,10]) print(myarray) while True: for i in range(4): myarray[i,0] = 1 + myarray[i,0] print(myarray) clearscr()Try it - it doesn't work!
Any other suggestions please?
Astrikor