Add Age Calculator Python Project#33
Add Age Calculator Python Project#33Shailaja-poojari wants to merge 3 commits intoGrow-with-Open-Source:mainfrom Shailaja-poojari:add-contrib-shailaja
Conversation
|
👋 @Shailaja-poojari |
Thank you for the acknowledgment! 🙌 |
iamwatchdogs
left a comment
There was a problem hiding this comment.
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.
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.
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!