RTMNU · Second Year B.Tech Civil Engineering · NEP 2020
Computer Programming by Python
BMD3T11 · Semester III · 2 credits · College 30 + university 70
A multidisciplinary-minor (MDM) course for Civil Engineering students.
Unit 1: Introduction, Data Types and Operators
6 hoursInstalling and working with Python, variables and data types, arithmetic, assignment, comparison, logical, membership, identity and bitwise operators, and list, tuple and string operations.
Examined in the 70-mark end-semester paper
- Installing Python and running programs
- Python basics: features, data types and operators
- Lists and tuples
- Strings and string methods
Unit 2: Decision Making and Loops
6 hoursIf, if–else and elif statements with Boolean expressions; while, for, nested and infinite loops with break, continue and pass; iterating over and manipulating lists, sets and dictionaries with built-in functions, and simple plots.
Examined in the 70-mark end-semester paper
- Decision control statements
- Loops: while, for, break, continue and pass
- Sets and dictionaries
- Built-in functions for iterating over collections
Unit 3: Functions and Modules
6 hoursDefining functions, organising code with them and variable scope; lists, tuples and dictionaries in functions, working with dates and times, and importing your own and external modules and packages.
Examined in the 70-mark end-semester paper
- Functions, scope and lambda
- Modules, packages and the standard library
- Working with dates and times
- Installing and using external packages
Unit 4: File Operations and Graphics
4 hoursFile input and output with text, CSV and binary files, and plotting with matplotlib.pyplot: text, values, lines, markers, axes, circles, polygons and arrows.
Examined in the 70-mark end-semester paper
- File handling in Python
- Reading and writing CSV files
- Binary files in Python
- Line plots with matplotlib.pyplot
- Markers, axes and labels in matplotlib
- Drawing shapes and arrows with matplotlib
Unit contents are summarised from the official RTMNU syllabus . AiCanCode.org is not affiliated with Rashtrasant Tukadoji Maharaj Nagpur University (RTMNU).