Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ii:labs:s2:01 [2023/03/17 21:32]
florin.stancu
ii:labs:s2:01 [2023/03/27 15:20] (current)
radu.mantu
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
  
-====== Lab 01 - Mastering Python ======+===== Lab 01 - Mastering Python ====== 
 + 
 +==== Objectives ==== 
 + 
 +  * Practice Python'​s syntax 
 +  * Learn to use the various Python structures 
 +  * Learn how to install & use third party libraries 
 + 
 +===== Contents ===== 
 + 
 +**Tasks** 
 +{{indexmenu>:​ii:​labs:​s2:​01:​tasks|skipfile}} 
 + 
 +===== Introduction ===== 
 + 
 +Python is a dynamic, interpreted language that has gained widespread popularity among developers for its ease of use and versatility. It was first released in 1991 by Guido van Rossum and has since become one of the most widely-used languages in the world. 
 + 
 +Python'​s syntax is clear and concise, making it easy to read and write, even for those new to programming. Its standard library includes a wide range of modules, making it well-suited for tasks ranging from web development and data analysis to artificial intelligence and machine learning. 
 + 
 +With its focus on simplicity and flexibility,​ Python is a great language for both beginners and experienced developers alike, which is why it's such a good choice for an Applied Computer Science course. 
 + 
 +===== Preparation ===== 
 + 
 +You will require a code editor supporting Python syntax (e.g., [[https://​code.visualstudio.com/​|Visual Studio Code]] with plugins / [[http://​lunarvim.org/​|LunarVIM]]) and a [[https://​www.python.org/​downloads/​|Python 3]] (>= 3.7) distribution for your Operating System. 
 + 
 +Windows users, you can either use the official [[https://​www.python.org/​downloads/​windows/​|Python3 release]] installer or the [[https://​learn.microsoft.com/​en-us/​windows/​wsl/​install|Windows Subsystem for Linux]] (highly recommended). 
 + 
 +For Linux-based OSes, you may simply install the ''​python3''​ and ''​python3-pip''​ packages from the distro'​s official repositories. 
 + 
 +==== Python3 Resources ==== 
 + 
 +Most of these tasks will involve a specific subset of Python features (e.g., data types, standard library routines or even PIP packages). 
 + 
 +For most of them, you will be given a couple of notes with the concepts you will need to use and, optionally, an URL to their official documentations. 
 +Also check out the [[https://​docs.python.org/​3/​tutorial/​|official Python Tutorial]] (at least take a look at its Table of Contents to get a sense of the available topics). 
 + 
 +==== iPython ==== 
 + 
 +Even when you're writing Python scripts, you'll want to do some quick prototyping every now and again. The shell that you choose for this can either make or break your experience. We recommend that you install [[https://​ipython.readthedocs.io/​en/​stable/​index.html|IPython]]:​ 
 + 
 +<code bash> 
 +$ sudo apt update && sudo apt upgrade 
 +$ sudo apt install ipython3 
 + 
 +$ ipython3 
 +</​code>​ 
 + 
 +===== Tasks ===== 
 + 
 +{{namespace>:​ii:​labs:​s2:​01:​tasks&​nofooter&​noeditbutton}} 
 + 
  
ii/labs/s2/01.1679081532.txt.gz · Last modified: 2023/03/17 21:32 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0