Module -1 Let us discuss , if the problems is based on percentage change. 1. If the salary of person increased by 10% and then decreased by 10% , what is the overall percentage change in the salary? Ans : Let us assume the salary of person is 100% , then it is increased by 10% so it becomes 110%. Now it is decreased by 10% from 110 that is 11, so 110 - 11 = 99 Initial salary is 100% , now the salary is 99% that is 1% change in the percentage. 2. If the cost price of an article is 100 , while selling he increased the cost price by 20% and then decreased 20% . what ...
Variables Variables is a container which stores the values in it. Every values in Python has a datatype. Datatypes in Python are numbers, list, tuple, strings, dictionary etc. Rules for Python Variables A Variable name can contain alpha-numeric characters and underscores (A - Z , a - z, _). A Variable name can start with number or underscore character, but can' t start with a number. Variable name should not be keywords. Keywords are some specific names that are used in Python for some specific function. Variable names in Python are case sensitive. (Height, height, HEIGHT are different). Variable Declaration Here we didn't defined data type , as we know Python is dynamically typed so not required to define explicitly. Multiple Variable Declaration We can declare multipl...