Python basics for machine learning!

Basic machine learning programs can be realized with a few lines of code. To do this one has to understand how one can save numbers, text to a variable and go through this array. The Python basics for machine learning consists of lists, dictionaries and how to go through theses lists or dictionairies using loops or list comprehensions. Once you installed Python you can start with this code.

a= 1
list_of_numbers = [0,1,2,3,4,5]
list_of_characters=['My', 'name', 'is', 'Lorenz']
list_characters_numbers=['I am ', 12, 'years old']

print a, b, list_of_numbers, list_of_characters

The result will be:

1 Loernz [0, 1, 2, 3, 4, 5] [‘My’, ‘name’, ‘is’, ‘Lorenz’]


Please follow and like us: