-
Notifications
You must be signed in to change notification settings - Fork 30
Add Age Calculator Python Project #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Age Calculator Python Project #33
Conversation
|
👋 @Shailaja-poojari |
Thank you for the acknowledgment! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hello-world directory doesn't align with this PR. This directory and files within it are part of 5137e1b commit. Please try to remove this commit via interactive rebasing.
| # Hello World in Python | ||
|
|
||
| This is a simple beginner-friendly Python project that prints a personalized "Hello, World" message. | ||
|
|
||
| ## File: `hello.py` | ||
|
|
||
| This script asks for the user's name and prints a greeting. | ||
|
|
||
| ### How it works: | ||
| - Takes input from the user | ||
| - Uses a function `say_hello(name)` to return a greeting message | ||
| - Prints the final message | ||
|
|
||
| ### To run: | ||
| ```bash | ||
| python hello.py | ||
|
|
||
| Example Output: | ||
| Enter your name: Shailaja | ||
| Hello, Shailaja! Welcome to the world of open source. | ||
|
|
||
|
|
||
| 🌟 Who is this for? | ||
| Perfect for first-time contributors to practice creating a Python script and contributing to open-source. | ||
|
|
||
|
|
||
| Contribution Steps: | ||
|
|
||
| Fork the repo | ||
| Clone to your system | ||
| Create a branch | ||
| Add your project | ||
| Commit and push | ||
| Create a Pull Request (PR) No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove any files that are not relevant to the PR.
| # Hello World in Python | |
| This is a simple beginner-friendly Python project that prints a personalized "Hello, World" message. | |
| ## File: `hello.py` | |
| This script asks for the user's name and prints a greeting. | |
| ### How it works: | |
| - Takes input from the user | |
| - Uses a function `say_hello(name)` to return a greeting message | |
| - Prints the final message | |
| ### To run: | |
| ```bash | |
| python hello.py | |
| Example Output: | |
| Enter your name: Shailaja | |
| Hello, Shailaja! Welcome to the world of open source. | |
| 🌟 Who is this for? | |
| Perfect for first-time contributors to practice creating a Python script and contributing to open-source. | |
| Contribution Steps: | |
| Fork the repo | |
| Clone to your system | |
| Create a branch | |
| Add your project | |
| Commit and push | |
| Create a Pull Request (PR) |
| def say_hello(name): | ||
| return f"Hello, {name}! Welcome to the world of open source." | ||
|
|
||
| # Example usage | ||
| if __name__ == "__main__": | ||
| user_name = input("Enter your name: ") | ||
| print(say_hello(user_name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove any files that are not relevant to the PR.
| def say_hello(name): | |
| return f"Hello, {name}! Welcome to the world of open source." | |
| # Example usage | |
| if __name__ == "__main__": | |
| user_name = input("Enter your name: ") | |
| print(say_hello(user_name)) |
Project Added:
Age Calculator – A simple Python script that takes the user's date of birth and calculates their age in years, months, and days.
Files Added:
Age-Calculator/age_calculator.py– Main script for age calculation.Age-Calculator/README.md– Contains project description, usage instructions, and sample output.Description:
This project demonstrates basic Python concepts such as:
datetimeContribution Type:
Author:
Contributed by Shailaja Poojari under the
add-contrib-shailajabranch.Kindly review and merge this contribution. Feedback and suggestions are welcome!