0% found this document useful (0 votes)
57 views

Programming Language 1 (Python)

لغة البرمجة البايثون د.وثيق

Uploaded by

wthyq3023
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Programming Language 1 (Python)

لغة البرمجة البايثون د.وثيق

Uploaded by

wthyq3023
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

University of Sana’a

Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

Course Specification of Programing Language 1 (Python)

I. Course Identification and General Information:


1 Course Title: Programing Language 1 (Python)
2 Course Code & Number:
C.H
TOTAL
3 Credit hours: Th. Seminar Pr. Tr.
2 2 2 - 4
Study level/ semester at which this
4 2nd Year – 1st semester
course is offered:
5 Pre-requisite (if any): Computer Basics
6 Co-requisite (if any): -
Program(s) in which the course is Electrical Engineering – Computer and Control
7
offered: section
8 Language of teaching the course: English
Electrical Engineering Department, Faculty of
9 Location of teaching the course:
Engineering
10 Prepared By: Dr. Sami AL-MAQTARI
11 Date of Approval:

II. Course Description:


This course is an introductory course to computer programming using Python language. It covers
the following subjects:
- Python variables, basic operators, and blocks.
- Numeric and string data types, defining list and list slicing, use of tuple data type.
- Program control flow: conditional blocks using if, else and elif, simple for loops, for loop using
ranges, string, list and dictionaries, while loops, loop manipulation using pass, continue, break
and else.
- Functions, modules, and packages: reusability concept with functions and organizing projects
with modules and packages.
- String, List And Dictionary Manipulations
- File manipulation.
- Regular Expressions.
- Introduction to Object-Oriented Programming (OOP).

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

1
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section
- Exception handling.
- Introduction to database interaction.

III. Course Intended learning outcomes Referenced PILOs


(Only write code number of I, E, A
(CILOs) of the course (maximum 8 CILOs) referenced Program Intended
learning outcomes)
Understand the fundamentals of computer programming
using Python language and its basics: keywords,
a.1
variables and data types, reusability with functions and
A1, A2, A3, A4 I
Object-Oriented Programming (OOP).
Acquire knowledge of programs basic blocks, control
a.2
statements, functions, modules, packages, and files.
Interpret the fundamental Python syntax and semantics
b.1 and be fluent in the use of Python control flow
statements. B1, B2, B3, B4 I
Express proficiency in the handling of various data types,
b.2
strings and functions.
Determine the methods to create and manipulate Python
c.1 programs by utilizing the data structures like lists,
dictionaries, tuples and sets. C1, C2, C3, C4 I
Identify the commonly used operations involving file
c.2
systems and regular expressions.
Learn some basic problem-solving techniques and being
d.1
able to apply them to different engineering problems.
D1, D2, D3, D4 I
Conduct searches on solutions for engineering problems
d.2
from engineering and non-engineering domains.

(A) Alignment Course Intended Learning Outcomes of Knowledge and Understanding to Teaching
Strategies and Assessment Strategies:
Course Intended Learning Outcomes Teaching strategies Assessment Strategies
a1. Understand the fundamentals of computer Active Lectures. Written Assessment.
programming using Python language and its basics: Tutorials. Quizzes.
keywords, variables and data types, reusability with
functions and Object-Oriented Programming (OOP).
a2. Acquire knowledge of programs basic blocks, control
statements, functions, modules, packages, and files.

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

2
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

(B) Alignment Course Intended Learning Outcomes of Intellectual Skills to Teaching Strategies and
Assessment Strategies:
Course Intended Learning Outcomes Teaching strategies Assessment Strategies
b1. Interpret the fundamental Python syntax and Active Lectures. Written Assessment.
semantics and be fluent in the use of Python control Tutorials. Quizzes.
flow statements.
b2. Express proficiency in the handling of various data
types, strings and functions.

(C) Alignment Course Intended Learning Outcomes of Professional and Practical Skills to Teaching
Strategies and Assessment Strategies:
Course Intended Learning Outcomes Teaching strategies Assessment Strategies
c1. Determine the methods to create and manipulate Active Lectures. Written Assessment.
Python programs by utilizing the data structures like Tutorials. Quizzes.
lists, dictionaries, tuples and sets.
c2. Choose the operating system suitable for a given
computer system application case.

(D) Alignment Course Intended Learning Outcomes of Transferable Skills to Teaching Strategies
and Assessment Strategies:
Course Intended Learning Outcomes Teaching strategies Assessment Strategies
d1. Learn some basic problem-solving techniques and Active Lectures. Written Assessment.
being able to apply them to different engineering Tutorials. Quizzes.
problems.
d2. Conduct searches on solutions for engineering
problems from engineering and non-engineering
domains.

IV. Course Content:


A. Theoretical Aspect
Learning Number of contact
Order Units/Topics List Sub Topics List
Outcomes Weeks hours
Introduction and a1, a2, b1, - Introduction to programming concepts.
History b2, c1, c2, - Types and history of programming languages.
1 1 2
d1, d2 - History of Python.
- Simple example programs in Python.
Basic a1, a2, b1, - Identifiers, keywords.
components of b2, c1, c2, - Statements and expressions.
2 Python d1, d2 - Variables and data types. 2 4
programming - Operators, precedence and associativity
language - Indentation and comments.

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

3
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section
- Input and output statements.
- Type conversions.
- The type() function and is operator.
- Dynamic and strongly typed language.
Control Flow a1, b1, b2, - The if decision control flow statement.
Statements c1, c2, d1, - The if…else decision control flow statement.
d2 - The if…elif…else decision control statement.
3 - Nested if statement. 1 2
- The while loop.
- The for loop.
- The pass, continue and break statements.
Functions a1, b1, b2, - Built-in functions
c1, c2, d1, - Commonly used modules
d2 - Function definition and calling the function.
- The return statement and void function.
4 - Scope and lifetime of variables. 2 4
- Default parameters
- Keyword arguments.
- *args and **kwargs.
- Command line arguments.
Strings a1, b1, b2, - Creating and storing strings.
c1, c2, d1, - Basic string operations.
d2 - Accessing characters in string by index number.
5 1 2
- String slicing and joining.
- String methods.
- Formatting strings,
Lists and a1, b1, b2, - Creating lists.
Dictionaries c1, c2, d1, - Basic list operations.
d2 - Indexing and slicing in lists.
- Built-in functions used on lists.
- List methods.
- The del statement.
6 1 2
- Creating dictionary.
- Accessing and modifying key:value pairs in
dictionaries.
- Built-in functions used on dictionaries.
- Dictionary methods.
- The del statement.
Tuples and Sets a2, b1, b2, - Creating tuples.
c1, c2, d1, - Basic tuple operations
d2 - Indexing and slicing in tuples
- Built-in functions used on tuples
7 - Relation between tuples and lists 1 2
- Relation between tuples and dictionaries
- Tuple methods
- Set methods
- Traversing of sets.
Files a2, b1, b2, - Types of files.
8 manipulation c1, c2, d1, - Creating and reading text data. 1 2
d2 - File methods to read and write data.

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

4
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section
- Reading and writing binary files.
- The pickle module.
- Reading and writing csv files.
- Python os and os.path modules.
Regular a2, b1, b2, - Using Special Characters
Expressions c1, c2, d1, - Regular Expression Methods
9 1 2
d2 - Named Groups in Python Regular Expressions.
- Regular Expression with glob Module
Object-Oriented a2, b1, b2, - Classes and Objects.
Programming c1, c2, d1, - Creating Classes in Python.
(OOP) d2 - Creating Objects in Python.
- The Constructor Method.
10 - Classes with Multiple Objects. 2 4
- Class Attributes versus Data Attributes.
- Encapsulation.
- Inheritance.
- The Polymorphism
Number of Weeks /and Units Per Semester 13 26

B. Practical Aspect: (if any)


Number contact Learning
Order Tasks/ Experiments
of Weeks hours Outcomes
a1, a2, b1, b2,
1 1 2
c1, c2, d1, d2
a1, a2, b1, b2,
2
c1, c2, d1, d2
a1, a2, b1, b2,
3
c1, c2, d1, d2
a1, a2, b1, b2,
4
c1, c2, d1, d2
a1, a2, b1, b2,
5
c1, c2, d1, d2
a1, a2, b1, b2,
6
c1, c2, d1, d2
a1, a2, b1, b2,
7
c1, c2, d1, d2
a1, a2, b1, b2,
8
c1, c2, d1, d2
a1, a2, b1, b2,
9
c1, c2, d1, d2
a1, a2, b1, b2,
10
c1, c2, d1, d2
Number of Weeks /and Units Per Semester 1 0

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

5
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

V. Teaching strategies of the course:


- Lectures,
- Laboratory,
- Demonstrations,
- Quizzes,
- Practical classes,
- Assignments.

VI. Assignments:
No Assignments Aligned CILOs(symbols) Week Due Mark
1
2
3

VII. Schedule of Assessment Tasks for Students During the Semester:


Proportion of Aligned Course
No. Assessment Method Week Due Mark
Final Assessment Learning Outcomes
1 Participation Weekly 5 5% All
Once a
2 Quizzes 5 5% All
month
3 Written Test 8th week 15 15% All
4 Final Exam (theoretical) 15th week 60 60% All
5 Final Exam (practical) 13th week 15 15% All

VIII. Learning Resources:


Written in the following order: (Author - Year of publication – Title – Edition – Place of publication – Publisher).
1- Required Textbook(s) (maximum two).
1- Gowrishankar S, Veena A, 2018, “Introduction to Python Programming”, 1st Edition, CRC
Press. ISBN-13: 978-0815394372
2- Essential References.
1- Jake VanderPlas, 2016, “Python Data Science Handbook: Essential Tools for Working
with Data”, 1st Edition, O'Reilly Media. ISBN-13: 978-1491912058
2- Wesley J Chun, 2015, “Core Python Applications Programming”, 3rd Edition, Pearson
Education India. ISBN-13: 978-9332555365

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

6
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

3- Electronic Materials and Web Sites etc.


1-

IX. Course Policies:


Class Attendance:
1 - The students should have more than 75% of attendance according to rules and regulations
of the faculty.
Tardy:
2 - The students should respect the timing of attending the lectures. They should attend within
15 minutes from starting of the lecture.
Exam Attendance/Punctuality:
3 - The student should attend the exam on time. The punctuality should be implemented
according to rules and regulations of the faculty for mid-term exam and final exam.
Assignments & Projects:
4 - The assignment is given to the students after each chapter; the student has to submit all the
assignments for checking on time.
Cheating:
5 - If any cheating occurred during the examination, the student is not allowed to continue and
he has to face the examination committee for enquires.
Plagiarism:
6 - If one student attends the exam on another behalf; he will be dismissed from the faculty
according to the policy, rules and regulations of the university.
Other policies:
- All the teaching materials should be kept out the examination hall and mobile phones are
7 not allowed.
- Mutual respect should be maintained between the student and his teacher and also among
students. Failing in keeping this respect is subject to the policy, rules and regulations of the
university.

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

7
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

University of : Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Electrical Engineering – Computer and Control Section

Course Plan of Programing Language 1 (Python)

I. Information about Faculty Member Responsible for the Course:


Name of Faculty Member Dr. Sami AL-MAQTARI Office Hours
Location& Telephone No. 771010885 SAT SUN MON TUE WED THU
E-mail [email protected] 10-12

I. Course Identification and General Information:


1 Course Title: Programing Language 1 (Python)
2 Course Code & Number:
C.H TOTAL
3 Credit hours: Th. Seminar Pr. Tr. dd
2 - 2 - 3
Study level/ semester at which this
4 2nd Year – 1st semester
course is offered:
5 Pre-requisite (if any): Computer Basics
6 Co-requisite (if any): -
Program(s) in which the course is Electrical Engineering – Computer and Control
7
offered: section
8 Language of teaching the course: English
9 System of Study:
10 Mode of delivery:
Electrical Engineering Department, Faculty of
11 Location of teaching the course:
Engineering

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

8
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

II. Course Description:


This course is an introductory course to computer programming using Python language. It covers
the following subjects:
- Python variables, basic operators, and blocks.
- Numeric and string data types, defining list and list slicing, use of tuple data type.
- Program control flow: conditional blocks using if, else and elif, simple for loops, for loop using
ranges, string, list and dictionaries, while loops, loop manipulation using pass, continue, break
and else.
- Functions, modules, and packages: reusability concept with functions and organizing projects
with modules and packages.
- String, List And Dictionary Manipulations
- File manipulation.
- Regular Expressions.
- Introduction to Object-Oriented Programming (OOP).
- Exception handling.
- Introduction to database interaction.

III. Intended learning outcomes (ILOs) of the course:


Brief summary of the knowledge or skill the course is intended to develop:
a1. Understand the fundamentals of computer programming using Python language and its basics:
keywords, variables and data types, reusability with functions and Object-Oriented
Programming (OOP).
a2. Acquire knowledge of programs basic blocks, control statements, functions, modules, packages,
and files.
b1. Interpret the fundamental Python syntax and semantics and be fluent in the use of Python
control flow statements.
b2. Express proficiency in the handling of various data types, strings and functions.
c1. Determine the methods to create and manipulate Python programs by utilizing the data
structures like lists, dictionaries, tuples and sets.
c2. Identify the commonly used operations involving file systems and regular expressions.
d1. Learn some basic problem-solving techniques and being able to apply them to different
engineering problems.
d2. Conduct searches on solutions for engineering problems from engineering and non-engineering
domains.

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

9
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

IV. Course Content:


Distribution of Semester Weekly Plan of Course Topics/Items and Activities.

A. Theoretical Aspect:
Order Topics List Week Due Contact Hours
- Introduction to programming concepts.
- Types and history of programming languages.
1 1 2
- History of Python.
- Simple example programs in Python.
- Identifiers, keywords.
- Statements and expressions.
- Variables and data types.
- Operators, precedence and associativity
2 - Indentation and comments. 2 4
- Input and output statements.
- Type conversions.
- The type() function and is operator.
- Dynamic and strongly typed language.
- The if decision control flow statement.
- The if…else decision control flow statement.
- The if…elif…else decision control statement.
3 - Nested if statement. 1 2
- The while loop.
- The for loop.
- The pass, continue and break statements.
- Built-in functions
- Commonly used modules
- Function definition and calling the function.
- The return statement and void function.
4 - Scope and lifetime of variables. 2 4
- Default parameters
- Keyword arguments.
- *args and **kwargs.
- Command line arguments.
- Creating and storing strings.
- Basic string operations.
- Accessing characters in string by index number.
5 1 2
- String slicing and joining.
- String methods.
- Formatting strings,
- Creating lists.
- Basic list operations.
- Indexing and slicing in lists.
- Built-in functions used on lists.
6 1 2
- List methods.
- The del statement.
- Creating dictionary.
- Accessing and modifying key:value pairs in dictionaries.

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

10
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section
- Built-in functions used on dictionaries.
- Dictionary methods.
- The del statement.
- Creating tuples.
- Basic tuple operations
- Indexing and slicing in tuples
- Built-in functions used on tuples
7 - Relation between tuples and lists 1 2
- Relation between tuples and dictionaries
- Tuple methods
- Set methods
- Traversing of sets.
- Types of files.
- Creating and reading text data.
- File methods to read and write data.
8 - Reading and writing binary files. 1 2
- The pickle module.
- Reading and writing csv files.
- Python os and os.path modules.
- Using Special Characters
- Regular Expression Methods
9 1 2
- Named Groups in Python Regular Expressions.
- Regular Expression with glob Module
- Classes and Objects.
- Creating Classes in Python.
- Creating Objects in Python.
- The Constructor Method.
10 - Classes with Multiple Objects. 2 4
- Class Attributes versus Data Attributes.
- Encapsulation.
- Inheritance.
- The Polymorphism
Number of Weeks/Units Per Semester 13 26

B. Practical Aspect: (if any)


Order Topics List Week Due Contact Hours
1 -
2 -
3 -
4 -
5 -
6 -
7 -

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

11
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section
8 -
9 -
10 -
Number of Weeks/Units Per Semester 0 0

V. Teaching strategies of the course:


- Lectures,
- Laboratory,
- Demonstrations,
- Quizzes,
- Practical classes,
- Assignments.

VI. Assignments:
No Assignments Aligned CILOs(symbols) Week Due Mark
1
2
3

VII. Schedule of Assessment Tasks for Students During the Semester:


Proportion of
Assessment Type of Assessment Tasks Week Due Mark
Final Assessment
1 Participation Weekly 5 5%
2 Quizzes Once a month 5 5%
3 Written Test 8th week 15 15%
4 Final Exam (theoretical) 15th week 60 60%
5 Final Exam (practical) 13th week 15 15%

II. Learning Resources:


Written in the following order: (Author - Year of publication - Title - Edition - Place of publication - Publisher).
1- Required Textbook(s) (maximum two).
1- Gowrishankar S, Veena A, 2018, “Introduction to Python Programming”, 1st Edition, CRC
Press. ISBN-13: 978-0815394372

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

12
University of Sana’a
Faculty of Engineering
Department of Electrical Engineering
Title of the Program: Computer and Control Section

2- Essential References.
1- Jake VanderPlas, 2016, “Python Data Science Handbook: Essential Tools for Working with
Data”, 1st Edition, O'Reilly Media. ISBN-13: 978-1491912058
2- Wesley J Chun, 2015, “Core Python Applications Programming”, 3rd Edition, Pearson
Education India. ISBN-13: 978-9332555365
3- Electronic Materials and Web Sites etc.
1-

VIII. Course Policies:


Unless otherwise stated, the normal course administration policies and rules of the Faculty of Engineering apply. For
the policy, see: ------------------------------------
Class Attendance:
1 - The students should have more than 75% of attendance according to rules and regulations
of the faculty.
Tardy:
2 - The students should respect the timing of attending the lectures. They should attend within
15 minutes from starting of the lecture.
Exam Attendance/Punctuality:
3 - The student should attend the exam on time. The punctuality should be implemented
according to rules and regulations of the faculty for mid-term exam and final exam.
Assignments & Projects:
4 - The assignment is given to the students after each chapter; the student has to submit all the
assignments for checking on time.
Cheating:
5 - If any cheating occurred during the examination, the student is not allowed to continue and
he has to face the examination committee for enquires.
Plagiarism:
6 - If one student attends the exam on another behalf; he will be dismissed from the faculty
according to the policy, rules and regulations of the university.
Other policies:
- All the teaching materials should be kept out the examination hall and mobile phones are
not allowed.
7
- Mutual respect should be maintained between the student and his teacher and also among
students. Failing in keeping this respect is subject to the policy, rules and regulations of the
university.

Prepared by Head of Department Quality Assurance Unit

Dean of the Faculty Academic Development Rector of Sana’a University


Center & Quality Assurance

13

You might also like