Skip to main content

A Python package for Grade 11 practical programs.

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gr11prctl-0.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gr11prctl-0.0.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file gr11prctl-0.0.3.tar.gz.

File metadata

  • Download URL: gr11prctl-0.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for gr11prctl-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b9a6f400eb3a7198b30f568e187618d264cae9a18d15cf4cbfe969bbdcb82e69
MD5 b494cd6a669d5612ed926290c96cad95
BLAKE2b-256 2577e81e84e922697b7dffe7a46fab3edd783ddeb9b6d19fa587559aa8953a9a

See more details on using hashes here.

File details

Details for the file gr11prctl-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gr11prctl-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for gr11prctl-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e14a74e8c3ccab749dfd84fcd342731bef85f1e74383d7994132d103383d19b6
MD5 dc614bbe4533901fc6afc043d5e885c0
BLAKE2b-256 644cf26dcd71a7a6777cf37e1cd0b05af76915aa5d508b37ac67fbd1ad2a4f4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page