Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions ASCII_Art_Style.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import time
import random

# Fun 'typing' effect function
def typing_effect(text):
for char in text:
print(char, end='', flush=True)
time.sleep(random.uniform(0.03, 0.1)) # Random typing speed
print()

# Creative "Hello, World!" with ASCII art
def hello_world_art():
art = """
_ _ _ _ __ __ _ _
| | | | | | | \ \ / / | | | |
| |_| | ___| | | ___ \ \ /\ / /__ _ _| |__ | |
| _ |/ _ \ | |/ _ \ \ V V / _ \| | | | '_ \| |
| | | | __/ | | (_) | \_/\_/ (_) | |_| | |_) |_|
|_| |_|\___|_|_|\___( ) (_) \__,_|_.__/(_)
|/
"""
typing_effect(art)

# Fun function to display basic info
def display_info():
name = "Your Name"
age = 25 # Example age
hobby = "Coding"

info = f"""
👋 Hello, World!
My name is {name} 🌍
I'm {age} years old 🎂
I love {hobby} 💻
"""
typing_effect(info)

# Call functions
hello_world_art()
display_info()