100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Summary

Summary T1ACD2- Computational Thinking (Python Basics) - Code Cheat Sheet & Algorithms

Rating
-
Sold
-
Pages
2
Uploaded on
15-01-2026
Written in
2025/2026

Essential Python Cheat Sheet for Computational Thinking Are you learning Python for the first time or preparing for your Computational Thinking exam? This concise cheat sheet cuts through the noise and gives you exactly the syntax and algorithms you need to memorize. It's not just a list of commands; it includes full code snippets for common exam problems involving matrices and lists. Key Concepts Covered: File Handling: `open()`, `read()`, `readlines()`, and closing files correctly. Core Modules: `math`, `random`, `copy` (deepcopy vs shallow copy), and `time`. Data Structures: List manipulation, slicing (`list[start:stop:step]`), sorting, and searching. Standard Functions: Type conversion (`int`, `float`, `str`), `round()`, `abs()`, `all()`, `any()`. Algorithm Examples (Ready-to-Use Code): Matrix Operations: How to Transpose a Matrix (swap rows/cols). How to perform Matrix Multiplication (nested loops logic). A custom `pretty_printer` function for displaying grids clearly. Image/Grid Manipulation: Vertical & Horizontal Mirroring of a 2D list (picture). Shifting elements left or right (padding with empty strings). Features: * Syntax highlights for quick lookup. * Focus on nested loops and 2D array logic (often the hardest part of intro exams). * Perfect for quick revision before a coding test. Disclaimer: These are personal student summary notes intended to supplement your course materials, not to replace official documentation or lectures.

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
January 15, 2026
Number of pages
2
Written in
2025/2026
Type
Summary

Subjects

$4.17
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
elisa10

Get to know the seller

Seller avatar
elisa10 Katholieke Universiteit Leuven
Follow You need to be logged in order to follow users or courses
Sold
New on Stuvia
Member since
3 hours
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions