This repository contains a collection of Python scripts and examples created as part of a Python learning journey. Each script covers various aspects of Python programming and serves as a hands-on exercise for beginners and learners.
To get started with these Python scripts, make sure you have Python installed on your computer. You can download Python from python.org.
- agree.py: A script that demonstrates user input and lowercasing it.
- calculator0.py: A script for comparing strings.
- casting.py: A script to showcase type casting and its case-sensitivity.
- conditionals.py: Examples of Python conditionals.
- example.py: A script that explores Python's print function.
- function.py: Introduction to functions in Python.
- globalvar.py: Illustration of using global variables in functions.
- indent.py: Reminder to use proper indentation in Python.
- input.py: Examples of taking user input in Python.
- loops.py: Examples of loops, including an infinite loop with a breaking condition.
- mario.py: A script for creating a pattern (how about a castle).
- mario2.py: Minor changes in mario.py (just a new line).
- mario3.py: Handling errors in Python scripts.
- mario4_hor.py: Creating a rectangular pattern.
- out_put_variable.py: Explanation of how the '+' character works as a mathematical operator for numbers.
- print-string.py: Working with strings, trying to print from the beginning to the 9th letter.
- print.py: Getting Started with Python.
- scores.py: Calculating the average of two numbers.
- variable_name.py: Explanation of variable naming conventions.
- variables.py: Introduction to variables in Python with a multiline comment.
You can clone this repository to your local machine to explore and run the Python scripts. Each script is well-commented to explain its purpose and usage.
git clone https://github.com/EMarvelM/pythonLearning.gitcd pythonLearningpython script_name.pyContributions to this repository are welcome! If you have additional Python scripts, improvements, or corrections to existing scripts, feel free to create a pull request.