0% found this document useful (0 votes)
8 views8 pages

Intro to Python Programming Course

The document outlines a Computer Programming course (CoSc1013) at Injibara University, focusing on Python programming for beginners. It covers essential programming concepts, Python syntax, data structures, control statements, functions, and file handling, with a mix of lectures, lab work, and tutorials. Assessment includes assignments, lab projects, and exams, with recommended textbooks for further learning.

Uploaded by

ramkeltesfa246
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views8 pages

Intro to Python Programming Course

The document outlines a Computer Programming course (CoSc1013) at Injibara University, focusing on Python programming for beginners. It covers essential programming concepts, Python syntax, data structures, control statements, functions, and file handling, with a mix of lectures, lab work, and tutorials. Assessment includes assignments, lab projects, and exams, with recommended textbooks for further learning.

Uploaded by

ramkeltesfa246
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Injibara University

College of Engineering
and Technology
Python
ython programming

University: _________________
College/Faculty: ____________
Course Title: Computer Programming
Course Code: CoSc1013
Credit Hours: 3 ECTS: 5 Contact hrs: 2 Lab hrs: 3
Tutorial hrs: 1
Prerequisite: None
Course Category: Compulsory
Year: I Semester: II
Course Description
This course is an intro
introduction
duction to Computer Programming
using Python. It is designed to help people with no prior
exposure to programming learn to think computationally
and write programs to tackle useful problems. Some of
the students taking the course will use it as a stepping
stone to more advanced computer science courses, but for
many it will be their first and last computer science
course. Students will learn basic computer programming
concepts and terminologies such as variables, constants,
operators, expressions, conditional statements, loops,
Strings, Lists, Tuples, Dictionaries, functions and files.
Python is an easy and fun language to learn, and it is now
one of the most popular programming languages, suitable
for almost any task from developing graphical user
interfaces to building web applications, and data analysis.
Course objectives
On completion of the course successfully, students will be
able to:
 Understand what programming is all about and its
importance in problem-solving
 Gain knowledge and skills to solve real-world
problems using computer programs
 Know how to abstract any problem to a computer
program
 Understand why Python is a useful scripting
language for developer
 Learn how to design and program Python
applications
 Learn how to use lists, tuples, and dictionaries in
Python programs
 Learn how to use indexing and slicing to access
data in Python programs
 Define the structure and components of a Python
program
 Learn how to write loops and decision statements
in Python
 Learn how to write functions and pass arguments
in Python
 Learn how to read and write files in Python
 Learn how to use exception handling in Python
applications for error handling
 Understand programming concepts that will assist
in learning other languages (like Java, Perl, or
C++)

Course outline
Chapter 1: Introduction (2 hrs)
1.1. Introduction to programming
1.2. Why should you learn to write programs?
1.3. Creativity and motivation
1.4. Computer hardware architecture
1.5. Understanding programming
1.6. Words and sentences
1.7. Conversing with Python
1.8. Terminology: interpreter and compiler
1.9. Problem solving techniques
1.9.1. Flowchart
1.9.2. Pseudo code
1.9.3. Algorithms
1.10. Writing a program
1.11. What is a program?
1.12. The building blocks of programs
1.13. What could possibly go wrong?
1.14. The learning journey

Chapter 2: Basics of Python Programming (4 hrs)


2.1. Structure of Python Program
2.1.1. Attributes and Imports
2.1.2. Functions
2.1.3. Statements
2.1.4. Modules
2.1.5. Standard library files
2.2. Python IDE
2.3. Showing Sample program
2.3.1. Keywords
2.3.2. Identifiers
2.3.3. Inputs
2.3.4. Outputs
2.3.5. Comments
2.3.6. Parts of a program
2.4. Data Types
2.4.1. Numeric
[Link]. Integer
[Link]. Complex Number
[Link]. Float
2.4.2. Boolean
2.4.3. Set
2.5. Variables
2.6. Values and Types
2.7. Constants
2.8. Expressions
2.9. Operators
2.9.1. Assignment Operators
2.9.2. Compound Assignment Operators
2.9.3. Arithmetic Operators
2.9.4. Relational Operators
2.9.5. Increment and Decrement Operators
2.9.6. Infix and postfix types
2.9.7. Precedence of Operators
2.9.8. Modulus operator
2.9.9. String operations
Chapter 3: Control Statements (6 hrs)
3.1. Conditional execution
3.1.1. Boolean expressions
3.1.2. Logical operators
3.1.3. Conditional execution
3.1.4. Alternative execution
3.1.5. Chained conditionals
3.1.6. Nested conditionals
3.1.7. Catching exceptions using try and except
3.2. Iteration
3.2.1. Updating variables
3.2.2. The while statement
3.2.3. Infinite loops
3.2.4. “Infinite loops” and break
3.2.5. Finishing iterations with continue
3.2.6. Definite loops using for
3.2.7. Loop patterns
3.2.8. Counting and summing loops
3.2.9. Maximum and minimum loops

Chapter 4: Function (6 hrs)


4.1. Definition of function
4.2. Declaration of function
4.3. Function calls
4.4. Built-in functions
4.5. Type conversion functions
4.6. Random numbers
4.7. Math functions
4.8. Adding new functions
4.9. Definitions and uses
4.10. Flow of execution
4.11. Parameters and arguments
4.12. Fruitful functions and void functions
4.13. Why functions?

Chapter 5: Python Sequence Types and Dictionary (8


hrs)
5.1. Sequence Types
5.1.1. Strings
[Link]. A string is a sequence
[Link]. Getting the length of a string using length
[Link]. Traversal through a string with a loop
[Link]. String slices
[Link]. Strings are immutable
[Link]. Looping and counting
[Link]. The in operator
[Link]. String comparison
[Link]. String methods
[Link]. Parsing strings
[Link]. Format operator
5.1.2. Lists
[Link]. A list is a sequence
[Link]. Lists are mutable
[Link]. Traversing a list
[Link]. List operations
[Link]. List slices
[Link]. List methods
[Link]. Deleting elements
[Link]. Lists and functions
[Link]. Lists and strings
[Link]. Parsing lines
[Link]. Objects and values
[Link]. Aliasing
[Link]. List arguments
5.1.3. Tuples
[Link]. Tuples are immutable
[Link]. Comparing tuples
[Link]. Tuple assignment
[Link]. Dictionaries and tuples
[Link]. Multiple assignment with dictionaries
[Link]. The most common words
[Link]. Using tuples as keys in dictionaries
5.2. Dictionary
5.2.1. Dictionary as a set of counters
5.2.2. Dictionaries and files
5.2.3. Looping and dictionaries
5.2.4. Advanced text parsing

Chapter 6: Files (6 hrs)


6.1. Persistence
6.2. Opening files
6.3. Text files and lines
6.4. Reading files
6.5. Searching through a file
6.6. Letting the user choose the file name
6.7. Using try, except, and open
6.8. Writing files
Teaching-learning methods
Two contact hours of lectures, three contact hours of lab
and 1 contact hour of tutorials per week.
Assessment methods
 Assignments/quizzes 10%
 Laboratory exams/projects 20%
 Mid semester examination 20%
 Final examination 50%

Text books:
1. Charles R. Severance, Python for Everybody:
Exploring Data Using Python 3, 2016
References:
1. Michael Urban and Joel Murach, Python Programming,
Shroff/Murach, 2016
2. Paul Gries, Jennifer Campbell, Jason Montojo, An
Introduction to Computer Science Using Python 3.6
Version: P1.0 (December 2017), Practical Programming,
Third Edition
3. Mark Lutz, Python Pocket Reference, Fifth edition,
2014, O’Reilly
4. David Beazley and Brian K. Jones, Python Cookbook,
Third Edition, 2013, O’Reilly

You might also like