Enhance Python basics: Printing, User Input, Type Conversion, DataTypes, and add Commenting notes #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR enhances the "1_Introduction to Basics of Python" subsection in the Gold Level Data Science ML Full Stack Repository. It includes updates to several fundamental concepts:
01_Python Print Statements: I have added a way of printing that avoids going to newline with improved explanations and examples, making it more comprehensive and beginner-friendly.
02_Variables and Datatypes: I have added the String Literals as it's very important to handle paragraph. I also added two ways of printing multiple statements with variables. One of them is normal way and the other one is formatted string literals.
03_Getting Values from User: I've added detailed information on how to check the type of user input in Python, highlighting the importance of converting types of user input.
04_Type Conversion: The section on type conversion is updated with showing the type of any user input.
07_Commenting: Added a new section on commenting in Python, explaining the ways of code comments and providing best practices.
Motivation
The goal of these updates is to provide learners with a solid foundation and different ways in Python programming. By improving these core concepts, we aim to make the learning process more accessible and enjoyable for aspiring data scientists.
Changes Made
Testing
I have thoroughly tested the updated content to ensure accuracy and readability. The code examples provided have been tested and validated to work as expected.
Checklist
Thank you for considering this PR. I look forward to your feedback and any further improvements that may be needed.