Category Archives: Python

How to sum the values of a Python dictionary

Calculate the sum of a Python dictionary values using loop and list comprehension. Continue reading

Posted in Python | Tagged , , , | 3 Comments

Convert Strings to Integers/Floats in Python

How to convert Strings to integer, Strings to float, List/tuple of strings to list of integers and List/tuple of strings to list of floats in Python. Continue reading

Posted in Python | Tagged , , , , , , , , | Leave a comment

Simple minimal Tkinter program

A very basic and minimal Tkinter program example that run on Python 3. Continue reading

Posted in Python | Tagged , , , | Leave a comment

The intersection of two Python lists

Suppose that you have two Python lists, x and y. How to list out the items that are common to the two lists. Continue reading

Posted in Python | Tagged , , | Leave a comment

How to install IDLE in Linux

Commands to install Python IDLE in Linux. Continue reading

Posted in Linux, Python | Tagged , , , , , , | Leave a comment