Python Code Blocks and Debugging (Spyder 5 IDE)

Channel:
Subscribers:
7,760
Published on ● Video Link: https://www.youtube.com/watch?v=2mRBCNm8UUw



Duration: 1:18:57
5,542 views
28


This video is an overview of the inbuilt Python programming language and will focus on structuring your code using code blocks. Before looking at this video you should have already installed the Anaconda Python Distribution, made yourself comfortable with the Spyder 5 IDE and procedural programming which are covered in my earlier tutorial videos and written guide linked below. Code blocks can be used to control what code within a script is ran by using if, elif and else code blocks or to execute n times using a for loop or want to run code while a certain condition is True using a while loop.

Written Guides:
https://dellwindowsreinstallationguide.com/python/
Python Playlist:
https://www.youtube.com/playlist?list=PL1RkaknDn7v-EO4V38oDBkZNd6_530nan

#python #spyder #codeblocks

00:00:59 concept of a code block
00:01:13 if code block
00:06:34 if and else code blocks
00:09:31 if elif, elif, … , else code blocks
00:12:03 nested if, elif, else, code blocks
00:14:39 for loops
00:31:22 creating a custom function
00:41:15 scope
00:45:14 functions with nested conditional code blocks
00:48:18 *args and **kwargs
00:50:10 function with nested for loop
00:51:16 while loops
00:59:30 asserting function input arguments
01:01:06 try, except, else, finally code blocks
01:03:38 lambda expressions
01:10:15 list comprehension

Once you have understood Procedural Programming and Code Blocks, you should be ready to explore the concept of Object Orientated Programming covered in my next video.




Other Videos By Philip Yip


2021-08-08Install DeepIn 20.2.2 on Windows 11 Pro Hyper-V VM with UEFI BIOS and Secure Boot Full Screen
2021-08-06Use of Diskpart to Format Clean or Wipe Clean All Partitions on a Drive Before Windows Installation
2021-08-05Screen Recording within the UEFI BIOS Setup and within Windows 11
2021-08-04Downloading a Windows 11 Insider Preview ISO, making a UEFI Bootable USB and Installation on a Dell
2021-07-15Install Ubuntu 20.04 LTS on Windows 11 Pro Hyper-V VM with UEFI BIOS and Secure Boot MOK Full Screen
2021-07-10Windows 11 Snap, Multi-Tasking and Multiple Monitors Feedback
2021-06-25Windows 11 Elevated System Requirements
2021-06-21Hexadecimal Colour Encoding Explanation using a Red, Green, Blue LED
2021-06-20A Clean Install of Zorin Linux 16 Beta (Dell UEFI BIOS with Secure Boot and MOK)
2021-06-18Python Object Orientated Programming (Spyder 5 IDE)
2021-06-13Python Code Blocks and Debugging (Spyder 5 IDE)
2021-06-10Python Procedural Programming (Spyder 5 IDE)
2021-05-26A Clean Install of KDE Neon Dell UEFI BIOS with Secure Boot
2021-05-23Getting Started with Python and the Spyder 5 IDE (Object Orientated Programming OOP)
2021-05-17A Clean Install of DeepIn Linux 20.2.2 Dell UEFI BIOS and Secure Boot
2021-05-16A Clean Install of Linux Mint 20.2 (Dell UEFI BIOS with Secure Boot and MOK)
2021-05-07Python: formatted strings (fstrings) and format specification for str, int and float objects
2021-03-121. Getting Started with Python and the JupyterLab 3 IDE. Object Orientated Programming (OOP)
2021-02-10Windows 10 Insider Preview New Emoji Panel, Clipboard History and Touchscreen Keyboard Feedback
2021-01-15DeepIn 20.1 Touchscreen Test on XPS 13 9365
2021-01-12XPS 13 Wacom Touchscreen Issues on Linux Mint 20.1