The final exam solutions for the "Introduction to Programming" course, offered in the 1st semester of the 2020 academic year at the University of Piraeus, Department of Informatics. These exercises were designed to test students' proficiency in Python and are suitable for anyone looking to practice programming with real-world tasks.
- Institution: University of Piraeus
- Department: Department of Informatics
- Course: Introduction to Programming (2020)
- Semester: 1st
- Python
Description:
Write a Python code that takes the dimension of a square and creates the corresponding array using lists. The code then finds the total number of positions and randomly fills half of them with ones. The goal is to count how many groups of four ones there are horizontally, vertically, and diagonally. The program repeats 100 times (for the same dimension) and returns the average number of groups.
Description:
Use the OPAP API (https://www.opap.gr/web-services) from Python to display the statistics of the numbers that win the first drawing of the day for KINO for the current month.
Description:
Write a Python code that takes an ASCII text file as input and converts each character to the corresponding ASCII number, keeping only the odd numbers. Display the occurrence statistics of each letter using “bars” with the character *, where each * corresponds to 1%.
Description:
Write a Python code that takes an ASCII text file as input and converts each character to its "mirror" ASCII character. Mirror characters are those whose sum is 255. Display the mirrored text to the user in reverse character order.
This repository is structured to contain the Python scripts corresponding to each exercise. Each script can be run independently, and they are organized by their exercise numbers. Ensure you have Python installed on your system to run these scripts.
This project is licensed under the MIT License - see the LICENSE file for details.
The OPAP API that I used is deprecated.