Conditionals
–Originally published at Calorex The first condition, we use if. The second to the second to the last, we use elif. The last one we
Solving Problems with Programming
–Originally published at Calorex The first condition, we use if. The second to the second to the last, we use elif. The last one we
–Originally published at Calorex
–Originally published at Calorex 1.Import modules or libraries actually,import numpy is enough but we always write numpy as np to save time because if we
–Originally published at Calorex This time ,I have two parameters for my function.First one is name ,second one is age .
–Originally published at Calorex The first three lines is creating the function The fourth line is calling functions Here is the result
–Originally published at Calorex 1.str vs. repr 2.input float
–Originally published at Calorex There are two basic output that I will introduce today.First one is float and next one is int. Int:Only have the
–Originally published at Calorex
–Originally published at 站点标题 Accoring to the zen of python, I conclude it into two parts: First: The simper the better Beautiful is better than
–Originally published at 站点标题