$24
Q1. Create one variable containing following type of data:
(i) string
(ii) list
(iii) float
(iv) tuple
Q2. Given are some following variables containing data:
(i) var1 = ‘ ‘
(ii) var2 = ‘[ DS , ML , Python]’
(iii) var3 = [ ‘DS’ , ’ML’ , ‘Python’ ]
(iv) var4 = 1.
What will be the data type of the above given variable.
Q3. Explain the use of the following operators using an example:
(i) /
(ii) %
(iii) //
(iv) **
Q4. Create a list of length 10 of your choice containing multiple types of data. Using for loop print the
element and its data type.
Q5. Using a while loop, verify if the number A is purely divisible by number B and if so then how many
times it can be divisible.
Q6. Create a list containing 25 int type data. Using for loop and if-else condition print if the element is
divisible by 3 or not.
Q7. What do you understand about mutable and immutable data types? Give examples for both showing
this property.
Note: Create your assignment in Jupyter notebook and upload it to GitHub & share that github repository
link through your dashboard. Make sure the repository is public.