Week 2 CornellNotesTemplate On Python
Week 2 CornellNotesTemplate On Python
Instructions: You must read the material and create an outline of the topics in your OWN words. Do not copy
the text from the tutorials into your notes. Make sure your outline contains notes for each subsection of the
reading assignment. Thoroughly cover each topic to show you have a firm understanding of the programming
concept or construct.
Ques NOTES:
High Level Vs Low Level Low level programming language are languages that offer more
Programming Language granular control over computer’s resources, but they are written
very similar to binary form. This makes them less portable and
more difficult to understand.
Ques NOTES:
enterprise software, video games, and mobile apps.
Ques NOTES:
Language Features of floating point, complex, and unlimited-length long integers)
Python etc.
How to Comment out You are allowed to consecutively make more that more single-line
Week: Week 2________________Name: __Theophilus_Amaye_________
Assignment: Required Reading: Programming Basic Class:CS105_Section 03P
Page 4 of 6 Date: _Due Nov 11, 2023___________ __
Ques NOTES:
Multiple Lines in Python comments, which can be make multiple-line comments.
How to Comment in a A block of code is multiple lines of code on the same indentation.
Block of Coded Doctrings can be used to add comments to code.
One-line docstrings Begin at the same indentation line as the scope, introduce the
comment with a triple quote and end with a triple quote.
Ques NOTES:
comments for testing seamless integration into the existing system.
Experimenting with different programming techniques by
commenting out code sections and evaluating each to
compare outcomes.
Systematically identifying the origin of errors by selectively
commenting out and running specific parts of a program,
allowing for precise debugging.
Summary on Comments Ensure they match the indentation level of the code they
in Python pertain to.
Comments should commence with a # followed by a space.
Docstrings are enclosed with triple quotes (""").
While Python lacks a built-in mechanism for multiline
comments, you can use multiple lines beginning with hash
characters or utilize docstrings.
Comments should explain the reasons and methods behind
the code.
Docstrings should focus on describing what the code does.
There are two Python version that are in use. Python 3 has more
Hello World
features than version 2. To write a simple “Hello World” string of
code, we do so typing;
print("Hello, world")
Indentation
Instead of curly bracket, indentation (using tab or for spaces) is
used to create block of codes. e.g.
Types and Variables Python adheres to a fully object-oriented paradigm and is not
Week: Week 2________________Name: __Theophilus_Amaye_________
Assignment: Required Reading: Programming Basic Class:CS105_Section 03P
Page 6 of 6 Date: _Due Nov 11, 2023___________ __
Ques NOTES:
characterized by "static typing." There is no requirement to
explicitly declare variables or specify their types before utilizing
them. In Python, each variable is treated as an object.