import time
from datetime import datetime
for i in range(10):
# Print the current time in the specified format
print(f"Current time: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
time.sleep(10) # Wait for 10 seconds before the next iteration