Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Class notes

Lecture Notes - Computer Science CSC1015F (2021) - Python Programming

Rating
3,0
(1)
Sold
2
Pages
86
Uploaded on
30-11-2021
Written in
2021/2022

Entire Syllabus Notes for First-Year, Computer Science 1015 First Semester Course! All Summaries and Important Parts, Detailed and In-Depth.

Content preview

CSC1015F
2021

, Definitions
Algorithm
A set of steps to accomplish a task.


Compile


Program
A set of instructions given to a computer, corresponding to
an algorithm to solve a problem.


Interpreter


Integrated Development
Environment (IDE)

Function
A common task/named sequence of instructions that
perform a collective purpose, that we can reuse.
e.g., print.


Argument/Parameters
Items or values that are sent into a function.
e.g., “Hello World”

,Syntax Error
When your program does not conform to the structure
required. and does not start at all.


Logic Error
When your program runs but does not work as expected.


Escape Sequences
Special characters that cannot be represented easily in the
program.


Literal
Fixed character sequences or numbers written into a
program and used directly.


Identifier
A word consisting of letters, numbers, and _ characters, used
to name parts of the program, like functions and variables.


Reserved Word
Type of identifier that has special meaning, and cannot be
used by programmers for other purposes.


Variable
Sections/Containers of memory/data, named using the rules
for identifiers and defined by assigning an initial value to
them.

, Comment
A part of code (starting after a #) that is ignored by Python and
is intended to help a human reader.


Expression
An arithmetic expression containing variables, numeric
literals, and arithmetic operators.


Syntax
The fundamental rules of programming language, similar to
the spelling and grammar rules of natural languages.


Boolean
A binary value that has only two possible states, either True or
False; one of the fundamental types in Python.


Conditional/Relational Expression
An expression that compares values using conditional
operators (<, >, <=, >=, ==, !=), and evaluates to a Boolean.


Boolean Expression
An expression that combines Boolean operands using
Boolean operators (and, or, not), and evaluates to a Boolean.


Iteration
Executing the same basic task or set of statements multiple
times.

Document information

Uploaded on
November 30, 2021
Number of pages
86
Written in
2021/2022
Type
Class notes
Professor(s)
Aslam safla
Contains
All classes

Subjects

R50,00
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Reviews from verified buyers

Showing all reviews
3 year ago

3,0

1 reviews

5
0
4
0
3
1
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
NoteSeller102 University of Cape Town
View profile
Follow You need to be logged in order to follow users or courses
Sold
10
Member since
4 year
Number of followers
9
Documents
7
Last sold
1 year ago

3,0

3 reviews

5
0
4
0
3
3
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions