python
top of page

Below you will find the current python blog posts.

Python blog
How to work with and modify texts (strings) in Python?

How to work with and modify texts (strings) in Python?

Learn how to work with and modify text in python.

How to fix the error: "Only size-1 arrays can be converted to python scalar"?

How to fix the error: "Only size-1 arrays can be converted to python scalar"?

This error occurs when the function expects a single value and not an array of values to convert. For example if we want to convert the...

How to do comment and to comment out multiple lines in python?

How to do comment and to comment out multiple lines in python?

How to add single line and multi line comments in python in different IDEs.

How to work with date time python functions?

How to work with date time python functions?

How to work with date time python functions. As with most programming languages date and time functions can be a bit tricky sometimes...

How to do math in python and working with numbers?

How to do math in python and working with numbers?

Python import math module, and working with numbers in general with python.

How to do a one line if statement in python?

How to do a one line if statement in python?

This post will teach you how to write if statement in python with one or multiple conditions or criteria.

How to work with While and For Loop Python?

How to work with While and For Loop Python?

Learn how to iterate with different loops in python. For loops, while loops, reverse loops, for each, double and multidimensional loops.

bottom of page