Skip to main content

gr11prctl 📚

A Python package with essential Grade 11 practical programs!

PyPI Version
License
GitHub Repo


📌 About

gr11prctl is a Python package that provides a collection of Grade 11 practical programs to help students understand fundamental programming concepts through ready-to-use functions.


🚀 Installation

Install gr11prctl from PyPI using:

pip install gr11prctl

🛠 Usage

1️⃣ View Available Programs

To list all available programs, run:

import gr11prctl
gr11prctl.code()

2️⃣ Import and Use Specific Functions

You can directly import functions from the snippets module.
Example: Check if a number is prime

from gr11prctl.snippets import is_prime
print(is_prime(7))  # Output: True

📜 Available Programs

# Function Name Description
1 pattern1_code Prints a right-angled triangle pattern.
2 perfect_number_code Checks if a number is Perfect.
3 prime_number_code Determines if a number is Prime or Composite.
4 fibonacci_series_code Generates the Fibonacci sequence.
5 count_chars_code Counts vowels, consonants, uppercase, and lowercase letters in a string.
6 palindrome_string_code Checks if a string is a Palindrome.
7 swap_even_odd_code Swaps even and odd-indexed elements in a list.
8 frequency_list_code Finds the frequency of elements in a list.
9 search_tuple_code Searches for an item in a tuple.
10 student_details_code Stores student details and filters students with marks > 75.

🎯 Example Usages

🔹 Right-Angled Triangle Pattern

from gr11prctl.snippets import pattern1_code
exec(pattern1_code.code)

🖥 Output (Example for n=5):

*  
* *  
* * *  
* * * *  
* * * * *  

🔹 Check if a Number is Prime

from gr11prctl.snippets import prime_number_code
exec(prime_number_code.code)

🖥 Output:

Enter any number: 7
7 is a PRIME number

🔹 Fibonacci Series

from gr11prctl.snippets import fibonacci_series_code
exec(fibonacci_series_code.code)

🖥 Output:

How many terms? 5
Fibonacci sequence:
0 , 1 , 1 , 2 , 3 ,

🔹 Swap Even and Odd Elements in a List

from gr11prctl.snippets import swap_even_odd_code
exec(swap_even_odd_code.code)

🖥 Output:

Enter number of elements: 4
Enter element: 1
Enter element: 2
Enter element: 3
Enter element: 4
Original List: [1, 2, 3, 4]
List after swapping: [2, 1, 4, 3]

Metadata

Release files for gr11prctl 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gr11prctl 0.0.3
File Size Uploaded
gr11prctl-0.0.3.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gr11prctl 0.0.3
File Interpreter ABI Platform
gr11prctl-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / gr11prctl-0.0.3.tar.gz

Download URL gr11prctl-0.0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b9a6f400eb3a7198b30f568e187618d264cae9a18d15cf4cbfe969bbdcb82e69
BLAKE2b-256 checksum
How to use checksums
2577e81e84e922697b7dffe7a46fab3edd783ddeb9b6d19fa587559aa8953a9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / gr11prctl-0.0.3-py3-none-any.whl

Download URL gr11prctl-0.0.3-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e14a74e8c3ccab749dfd84fcd342731bef85f1e74383d7994132d103383d19b6
BLAKE2b-256 checksum
How to use checksums
644cf26dcd71a7a6777cf37e1cd0b05af76915aa5d508b37ac67fbd1ad2a4f4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page