Python

Afuwa Musa
2 min readFeb 22, 2019

--

The language is used in scientific and mathematical computing, and even in AI projects. It’s been successfully embedded in numerous software products, including visual effects compositor Nuke, 3D modelers and animation packages,

python is a programming language that is designed for software programmers who need to learn Python programming language from scratch. According to me, it’s really interesting just because it helps to think ahead. For the time I have been learning python, I have learned some thing s that I would like to share.

Returning a dictionary, here, we create a function and the terminate it and the next step will be creating an empty dictionary and then create empty lists to hold the sorted characters and then the next step will be a for loop to look for the characters and checking for them using the conditional statements and in this case we will use the isinstance() function( it a function that checks if the object (first argument) is an instance or subclass of classinfo class (second argument) and then the module operator(%)(it divides and brings the remainder) only if needed, however, there are so many other operators.Then we append(means adding) the characters to empty lists created and then add the keys and sorted values to the dictionary, and calling for the function. And more so, commenting. Commenting helps me to remember For example

Finding missing characters in the list, at first we create a function and then define it inside the parenthesis, for example, def find(missing): def means that we are defining a function and find is the function. Then we create an empty list that will hold the characters we are looking for the missing numbers by using a for loop in range() of some characters for example1 to 10. range() is an iterator that generates a range of integer values. we always terminate the loop cause if it’s not terminated, it will always bring errors just the same as using a function and conditional statements. Then we use an if statement to append all the missing characters in our empty list created, and return the list that contains all the characters that have been added. Lastly, we will call our function(if the function is not called, it will always bring errors).

The language is used in scientific and mathematical computing, and even in AI projects. It’s been successfully embedded in numerous software products, including visual effects compositor Nuke, 3D modellers and animation packages,

--

--