Py.Cafe

wus5b38/

streamlit-lin-greetings

Streamlit-based Greetings Interactor

DocsPricing
  • app.py
  • requirements.txt
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Program Name: Hello World Full Version
Author: lin
Date: 2026-02-26
Function: Display greeting and interact with the user
"""

def main():
    # Display welcome message
    print("=====================================")
    print("          Hello World ! 🌍           ")
    print("=====================================")
    
    # Get user input
    name = input("What is your name? ").strip()
    
    if name == "":
        name = "Mysterious Friend"
    
    # Output personalized greeting
    print(f"\nHello, {name}! Nice to meet you~")
    print("How are you feeling today? Hope you have a wonderful day! 😊")
    
    # End of simple interaction
    print("\nProgram finished, press Enter to exit...")
    input()

if __name__ == "__main__":
    main()