Computing Python And The One After Flashcards
Why is python easier than any other ?
Easy instructions
Simple rules
Very easy to find errors and fix them
Helps us create programs that save time and effort
Who is the inventer of python?
Guido van rossum
What is an algorithm?
A set of well defined instructions that allow us to solve a problem in a step by step manner.
What r the rules for writing an algorithm?
Finite number of steps
Well ordered steps
What r flowcharts?
A graphical representation of a logical flow of data?
Name some apps to make a flowchart in Google docs.
Google drawings
Microsoft visio
Python is a dash language?
Text based
What are the types of views in python?
Blocks view
Split view
Text view
What do u use to save a program on ur computer?
Download
What is a variable?
A variable is used to store a value(the value can change)
Dash is the smallest unit of a python program?
Token
What are the five tokens of python?
Reserved words
Literals
Delimiters
Operaters
Identifier
What r reserve words?
Words that have a predetermined meaning of a signifance in python
.e.g/if,or,as,true,false
What are delimiters?
They r symbols which perform 3 special rules/grouping, punctuation, assignment.
E.g/+= /=»_space;/
What r identifiers?
A user defined name in python
Used for variables, functions and modules.
E.g/name,greeting,x
What are literals?
A raw data assigned to variables while programming,both numeric and string.
E.g/x=34 then 34 is a literal
What r operaters?
They r tokens to perform an operation in an expression.
E.g/+ - * / %
What is a string data type?
A sequence of alphabets, numbers,special characters enclosed in a (“”)
What are the types of numeric data type?
Integer,float
What is integer and float?
Integer is positive or negative whole number.
Float is a decimal number.
What is list data type?
List is a collection of items in an ordered sequence.Items of a list can be seperated by a comma and enclosed by square brackets
What is Boolean data type?
Only has two values true and false or numerically 1 or 0
Syntax to convert float to integer
Int(blahblah)
Syntax to convert integer to float?
Float(bhallfh)
What does + do
Adds a and b
What does % do.provide it’s name
Modulus.it provides the remainder
What does ** do? Provide a name
Exponentiation.it give the power to
What does // do? Provide a name
Floor division.it divided a by b and rounds to the lowest integer value.
Pemdas ?
Parenthesis
Exponentiation
Multiplication
Division
Addition
Subtraction