Monthly Archives: April 2021

Protected: Human Computer Interaction/HMI

This content is password protected. To view it please enter your password below:

Protected: Data Mining Summer 2021, Frankfurt U

This content is password protected. To view it please enter your password below:

Protected: Advanced IT security

This content is password protected. To view it please enter your password below:

Protected: Advanced Testing:

This content is password protected. To view it please enter your password below:

Protected: Wiki Diary: Learning from Data

This content is password protected. To view it please enter your password below:

Python Course Zero to Mastery Started at Udemy

Python usually uses an interpreter. The compiler are a little bit different.

Interpret translates line by line.

Compiler takes all lines to machine code.

What is programming language? We give some instruction to translator. They tell the machine what to do. Translator can be interpreter or compiler.



Python basics till numbers:

Double Slash in Python:

/ -> float division
//-> integer division

don’t memorize which available on the documentation

String type conversation.

Formatted String:

String Index



Built in functions

Software to find your current age with python:

#1 “old style” string formatting(% operator)


Template string ta pore kokhono hoyto dekhbo, ei ar ki

password length printing code from the course:



list operations:

we can see the function from online documentation from the official site or other sites








set is an unordered collection of unique objects.



Truthy and Falsy:


Exercise: Logical Operators


is vs == 
with using ‘is’ it needs to be refers to the same object

with == it needs to be equally same valued

for example:



Exercise: Counter will print item in list





break, pass, continue



Parameters and Arguments:

Return in python:

How it works:

without return it prints none:


with return it prints something that I insisted for:

Nested Return:

#issues with print and return



Exercise: To find even and max value from a list


Abstraction: private vs Public





no amount of video is enough you have to learn by your way of development projects.

4 pillars in oop Encapsulation, Abstraction, Inherítance, Polymorphism


Now i am looking for another video from youtube to earn something about it.

Now the exercise from the udemy course:

Super,Object Introspection, Dunder/Magic method

1st example:


2nd example:


#Multiple Inheritance

#Method Resolution Order(MRO)

Pure Function





output: [(1, 10, 5), (2, 20, 4), (3, 30, 3)]

reduce() function and how it works in python:

I have seen two videos here from udemy and youtube to clear this concept for me

code from udemy:



Exercise solutions here in function:

#1 Capitalize all of the pet names and print the list


#2 Zip the 2 lists into a list of tuples, but sort the numbers from lowest to highest.

#3 Filter the scores that pass over 50%

#4 Combine all of the numbers that are in a list on this file using reduce (my_numbers and scores). What is the total?


Lambda Expressions in python:

Lambda is a computer science term. Which is an anonymous function. Which don’t use more than once for a purpose. Usually in lambda we don’t need to decalre any function name. What happens inside a function we can write in simple line using lambda function.

lambda using map:

lambda using filter:

lambda using reduce:

# Exercises using lambda
1. make a lambda example to squre

2. make a lambda example to make a sorted list

List Comprehension

Set and Dict Comprehension:

#dict comprehension

Comprehension is for shorthand.

Now a small exercise:

Problem: to write a one line code to find duplicate character to show in a answer
Soln code:



another example:

Higher Order Function HOC

the decorator can supercharge the function and can add an extra feature


Another example:

Practical Application of Decorator:


Need to do later as it is not downloading on my tablet

Error Handling:


custom error in error handling:

Range is a generator. Generator is special type in python

generator is iterable but all iterable is not generator
example: range is generator that is always iterable, list is also iterable but not generator


Some examples of using modules here: : in this file I put all the functions for opertions

Now I am sending values to those function using main :


Again another way:

The thing need to remember usually in a package automatically a file creates.

Another important thing a successful program without error run with exit code 0
And with error run with exit code 1

Another way of example:


Again example with names:


#if __name__==’__main__’:

Python Built in Modules:

In other language it is known as standard library.
You don’t need to remember all, just know it exists and google it when needful.