COMP10001 Lecture Notes - Lecture 1: Order Of Operations, Elementary Arithmetic, Operand

59 views1 pages
+ = addition
-
= subtraction
/ = division
* = multiplication
** = exponent
% = modulo
// = "floor" division (integer division)
-
Uses BODMAS to associate operands
-
_ stores the value of the last calculation
-
Python Basics:
print() can be used to print the value of the operand
-
Print function:
Syntax = the arrangement of words and phrases to create well
-
formed sentences in a language
Semantics = the meaning of a word, phrase or text
What operators (functions and methods) can be applied to it
Its semantics
The type defines
-
int (integer)
float (real number)
complex (complex number)
Number types
-
Types:
Week 1
Thursday, 8 March 2018 2:14 PM
Foundations of Computing Page 1
Unlock document

This preview shows half of the first page of the document.
Unlock all 1 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents