All posts by Tuna Peyo

Keyword arguments in functions

Aug 10,97

Keyword arguments are name-value pairs specified in the function call. With keyword arguments, you don’t have to worry about the …

Read More

Positional arguments

Aug 10,97

A function definition can contain more than a single parameter. The easiest way to pass multiple arguments to a function …

Read More

Return statement

Aug 10,97

Often times you will want to write a function that process some data and then returns a value. For example, …

Read More

What are functions?

Aug 10,97

Functions in Python are named blocks of code that are used in large programs to separate code into manageable chunks. …

Read More

Make a list of lines from a file

Aug 10,97

It is possible to the place a lines in a file in a list, with each line representing a single …

Read More

Read and write – with statement

Aug 10,97

Another way in which you can read and write files is by using the with statement. The main benefit of …

Read More
Geek University 2022