Please enable JavaScript.
Coggle requires JavaScript to display documents.
Phyton - Coggle Diagram
Phyton
A Variable are used to store information. they are temporary and only exist while the program is running. The value of the variable is the information assigned to the variable. Uses a = to instruct a variable
when naming a variable keywords, spaces, cant start with a number. instead of space you can use camelCase or under_score.
-
-
-
-
-
Errors
syntax error the code has no been written right and will not run. eg using a capital letter for a function
Bug is a logical error the code has run but not how it should. Might have missed a line of code. Or not used brackets in equations
-
-
A String is any character inside quotation marks. the quotation marks show the start and end of a string.
An Argument is an additional instructions inside the brackets separated by commas e.g ("hello",\n, "hello"). parameter is another word for arugment
-
comments contain explanations to help other coders understand the code and it purpose. Also is a useful reminder to the programmer.
#
is a single line comment
"""
this is a multiline comment
"""
floor division is the number before the decimal point after division. always an integer = // always is an integer
-
-
rounding a number ... answer=round(answer,2)
-
-
-