CE107L Computer Programming for Civil Engineers Lab
SPRING 2020, Department of Civil Engineering, University of Engineering and Technology, Peshawar, Pakistan
More video lectures comming soon...
SPRING 2020, Department of Civil Engineering, University of Engineering and Technology, Peshawar, Pakistan
Students will be introduced with the course contents and website https://sites.google.com/uetpeshawar.edu.pk/python . Also students will be introduced with Python installation and language as well.
Student will practice Python interpreter using Command Prompt (terminal) to perform:
1. Arithmetic (=, +, -, /, *, ** ,//, %, +=) and logic (<,<=,>,>=,!=,==) operators
2. Take user input with input(),
use typecasting int(), float() and str() to convert input and
use escape character \n, \”, \’
3. String Manipulation: combining strings with “+” and
using .format() method
4. Show/display results using print()
Numeric, Cells Arrays (in Matlab) or list, array (in Python)