Search for tag: "python"

Debugging 2 - Logical errors

How to deal with logic errors in Python. Use print statements.

From  Simon Pauw 0 likes 688 plays 0  

Debugging 1 - Type of problem

Identifying three different type of problems that might occur when trying to run your code: - Syntax errors - Exceptions - Logical problems

From  Simon Pauw 0 likes 681 plays 0  

Continue - Basics

How to use the continue statement in Python.

From  Simon Pauw 0 likes 3 plays 0  

Pass - Basics

How to use the pass statement in Python

From  Simon Pauw 0 likes 4 plays 0  

Break - Basics

How to (not) use the break statement in Python

From  Simon Pauw 0 likes 13 plays 0  

Main function 2 - with import

Defining a main function is particularly useful when create a program consisting of multiple python files.

From  Simon Pauw 0 likes 27 plays 0  

Main function 1 - For better design

How to define a main function to improve the design of your code in Python?

From  Simon Pauw 0 likes 111 plays 0  

Tuples 1 - Basics

How to use tuples in Python

From  Simon Pauw 0 likes 401 plays 0  

Use case - Transform strings

How to use loops to transform strings into other strings

From  Simon Pauw 0 likes 498 plays 0  

Use case - Filtering lists with for

How to use a foor loop to filter elements from a list in Python

From  Simon Pauw 0 likes 677 plays 0  

Use case - Nested loops

Using loops inside of other loops in Python.

From  Simon Pauw 0 likes 935 plays 0  

While 3 - Common Mistakes

Some common mistakes with using while loops.

From  Simon Pauw 0 likes 825 plays 0  

Use case - While for input validation

How to use a while loop for input validation?

From  Simon Pauw 0 likes 1 plays 0  

Functions 4 - Functions as parameters

How to use functions as parameters for other functions (i.e., second order functions)

From  Simon Pauw 0 likes 317 plays 0  

Functions 3 - Multiple Return Values

How to return more than one value using functions in Python?

From  Simon Pauw 0 likes 568 plays 0  

Functions 2 - Multiple Parameters

How to define and use functions that have more than one input parameter.

From  Simon Pauw 0 likes 664 plays 0