Python Bash Scripts by Muthoni Gathiithi
Welcome to my collection of Python scripts demonstrating basic programming concepts and practical tasks. This repository contains small programs that utilize functions, lists, file handling, and system operations.
This repository includes scripts for various simple Python tasks:
-
Functions
FUNCTIONS/β Scripts demonstrating function usage.- Example: Count vowels in a word.
- Example: Print whether a number is even or odd.
-
Lists
LISTS/β Programs manipulating Python lists.- Example: Add two numbers using a function.
- Example: Check the length of a list.
-
File Handling
listfilesinfolder.pyβ List all files in a specified directory.
-
System Information
systeminfo.pyβ Print system information such as OS, Python version, and environment details.
- Learn and practice Python functions.
- Handle lists and perform operations on data.
- Work with files and directories.
- Retrieve basic system information programmatically.
- Clone the repository:
git clone https://github.com/MuthoniGathiithi/Python_bash_script.git Navigate to the project folder:
cd Python_bash_script
Run any Python file:
python3 filename.py
Make sure you have Python 3.x installed.