Untitled
unknown
plain_text
a year ago
1.1 kB
3
Indexable
import time import os def clear_screen(): # Clear the screen os.system('cls' if os.name == 'nt' else 'clear') def print_cat_pizza(x): # Define the cat and pizza ASCII art frames cat_pizza_frames = [ """ /^ ^\\ / 0 0 \\ V\\ Y /V / - \\ / | V__) || """, """ /^ ^\\ / 0 0 \\ V\\ Y /V / - \\ / | V__) || \\\\ | \\| """, """ /^ ^\\ / 0 0 \\ V\\ Y /V / - \\ / | V__) || \\\\ | \\|/ """, ] clear_screen() print(cat_pizza_frames[x % len(cat_pizza_frames)]) time.sleep(0.2) def main(): # Number of times to animate the cat flying with pizza num_frames = 20 # Animate the cat flying with pizza for i in range(num_frames): print_cat_pizza(i) if __name__ == "__main__": main()
Editor is loading...
Leave a Comment