6-CSE / HelloWorld

HacktoberFest - 2023 😎
MIT License
31 stars 407 forks source link

Update say_hello_to_everyone.py #378

Open Nikhil18Patil opened 11 months ago

Nikhil18Patil commented 11 months ago

Put the code inside a main function for better organization and readability. Check if the 'names' package is installed only once at the beginning. Use a for loop to simplify the counting logic. Added a conditional check to make sure the entered number is within the desired range. Improved the formatting of the input prompt and output message for better user experience.