The first condition, we use if. The second to the second to the last, we use elif. The last one we use else.
Category Archives: 未分类
create modules
Using Modules-Numpy
1.Import modules or libraries actually,import numpy is enough but we always write numpy as np to save time because if we write a lot of codings , it can save us much energy. For some library , you need to install it in cmd.write : pip install +the name of library 2.The basic information about …
Creating Functions
This time ,I have two parameters for my function.First one is name ,second one is age .
Calling functions
The first three lines is creating the function The fourth line is calling functions Here is the result
basic user input
1.str vs. repr 2.input float
Basic Ouput
There are two basic output that I will introduce today.First one is float and next one is int. Int:Only have the numbers before the decimal point. Float:Can have the numbers after te decimal point
six basic tpye in python3
zen of python(mas ficil)
Accoring to the zen of python, I conclude it into two parts: First: The simper the better Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Second: understand your code and let …