Python
Composition
- This refers to has a relationship
- examples:
- Car has a engine
- Course has a faculty
- Example Reference
- Note: Google Python Style Guide
- Refer Here for samples
Python Standard Library
- official docs
-
Types:
- String:
- list
- tuple
- set
- dictionary
- Refer Here for samples done in class
Build an investment Calculator
- Lets build a cli application with modular design to perform investment calculations
- For documentation use markdown, cheatsheet
CLI Applications
- Any CLI application will take arguments
- Arguments are of two types
- positional
ping google.com
cp 1.txt 2.txt
mkdir test
- keyword
ansible --help
az group add --name test --location centralindia
- I want to build a cli for my application which looks as
calculator.py --amount 100 --type fd --rate 7 --time 1
107
