Milandeep Bassi

Learn to Code: Python Programming

YouTube ThumbnailUsing Recursion in Functions

a year ago

Milandeep Bassi

Learn to Code Python Programming

This function is recursive as in the else statement it calls upon the function once more meaning that another function is being executed in that position of the original function until the first if selection is completed within the recursive function.

YouTube ThumbnailUsing List Data Structures in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

A list can contain numbers or mixes of data types together within the brackets. Each item in a list is called an element. Each of these elements will have an index number. The index numbering as with strings begins at 0. Same with strings lists can be indexed using negative numbers. Two index numbers can also produces ranges.

YouTube ThumbnailHow to Debug and Handle Errors in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

Errors in programming can be called "bugs" and the elimination of these errors is called debugging. There are 3 kinds of errors that can be found in a program. You can have Syntax errors, Run-time errors and Semantic errors.

YouTube ThumbnailUnderstanding Variables and Data Types in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

Variables are the labels for data essentially. The data is then stored to this label. If you wanted a programme to remember someones name then when asking for the input you assign a variable to it.

YouTube ThumbnailDefining and Calling Functions in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

A function makes it when you need some code that can be re-used or is to complicated to store within the main body of code you separate it into a function. For example if we're trying to calculate the area of a circle instead of typing area = 3.14 * radius ** 2 each time we could create a function to calculate this for us.

YouTube ThumbnailUsing Selection in the form of if, else and elif in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

The structure of an if statement is very simple. The expression is first evaluated with a Boolean value (True or False). If the statement is true, the code will be executed otherwise it is skipped. With if statements it's wise to use the Comparison operators we learned when discovering how to use While loops.

YouTube ThumbnailUsing For Loops and While Loops in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

A while loop is one way of repeating some code. A while keyword is followed by True or False values. The expressions thats value is equal to True or False is called a Boolean. An example of a while loop is below. Another type of loop in Python is the For loop. The for loop continues going over the elements in a finite list of values. The structure of the loop is outlined below.

YouTube ThumbnailCreating and Running your First Program in Python

a year ago

Milandeep Bassi

Learn to Code Python Programming

Python is a high-level language similar to C++, Visual Basic and Java. Python is considered an interpreted language because Python programs are executed by an interpreter. Command-line mode and script mode are how the interpreter is used.

YouTube ThumbnailUsing Tuple Data Structures in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

Tuples are different from lists as once they're created they cannot be changed. This makes them an immutable data type. This means elements cannot be replaced, removed or added.

YouTube ThumbnailHow to Manipulate Strings in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

Each character in a string can be accessed separately. Each character has a number reference to it. The index number always begins at 0.

YouTube ThumbnailTaking Inputs from Users in Python Programming

a year ago

Milandeep Bassi

Learn to Code Python Programming

Variables are the labels for data essentially. The data is then stored to this label. If you wanted a programme to remember someone’s name then when asking for the input you assign a variable to it. We can also allow users to enter their own data into a variable for storage.

YouTube ThumbnailUnderstanding 6 Basic Programming Concepts

a year ago

Milandeep Bassi

Learn to Code Python Programming

Today we will be covering the basics you need to understand for how to begin programming. These concepts are essential for anyone looking to work with code or even just read it. In this video we will be covering pseudo code, Control flow, Selection, Iteration, Calls and data handling aka variables. These 6 coding concepts will really help you to understand and code easily.