Follow up2120129
Follow
Following up2120129
Following
Add To Collection
Collection
Comments
Devlog
Programming blog (up2120129)
←
Return to Programming blog (up2120129)
Devlog
Functions and Arguments
December 15, 2022
by
up2120129
A function is a chunk of code that can receive data and return it.To create a function we use the def keyword for example: Input: def my_function(): print ( "Hello World" ) my_function() Output: Hello...
Continue reading
Loops
December 15, 2022
by
up2120129
Python uses two different loops while and for. while loops can execute a set of statements as long as a condition is true for example: Input: i = 1 while i < 6 : print (i) i += 1 Output: 1 2 3 4 5 The...
Continue reading
Conditions
December 15, 2022
by
up2120129
if-else statements use True and False to determine whether a requirement has been met and then produce an output based on the result. The if keyword checks the requirements are met and then produce an...
Continue reading
Printing, Commenting and Numbers
December 15, 2022
by
up2120129
I also learned how to write a comment on script by using: # type comment here This would leave what is written in the code without altering the code in any way. Doing this allows a programmer to leave...
Continue reading