Skip to content

Hannnatu/Python-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

This repo contains python scripts for my learnings.

Fortune Cookie Script (fcookie.py) Overview The fcookie.py script is a simple and fun Python program that generates a random fortune message based on user input. Whether you're looking for inspiration, guidance, or just a bit of fun, this script provides a personalized "fortune cookie" message to brighten your day!

How It Works The script prompts the user to input one word related to the type of fortune they'd like to receive (e.g., love, money, happiness, success, or friendship). Based on the input, the script selects a random message from a predefined set of fortunes. If the input word doesn't match any of the predefined categories, the script will provide a default fortune message.

Converter Script (Script.py) This Python script provides a simple utility to convert days into hours. It defines a function days_to_units that calculates the equivalent hours for a given number of days. The script also includes an interactive feature where users can input a number of days, and it will return the calculated hours.

About

Python Scripts for my learnings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages