Computer Science Sumita Arora Class 11 -

num = int(input("Enter number: ")) if num % 2 == 0: print("Even") else: print("Odd")

a) Define a list in Python. Is it mutable or immutable? b) What is a tuple? How is it different from a list? c) What is a dictionary? How are dictionary keys different from values? d) What is slicing in the context of Python strings? e) Write the function of len() and type() functions.

It is . In a country with a million students per year, standardized, predictable, and exhaustive content is non-negotiable. The book democratizes access to computer science; a student in a village with a poor teacher can still learn the definition of a "stack" from this book. For that, Arora deserves immense respect. computer science sumita arora class 11

Consider the following table EMPLOYEE :

c) How do you delete a key-value pair from a dictionary? Give the command. num = int(input("Enter number: ")) if num %

But it is . Real programming is messy, creative, and iterative. It involves Google, Stack Overflow, frustration, and sudden joy. This book offers none of that. It offers certainty in a field defined by change.

Write a Python program that acts as a simple calculator. How is it different from a list

a) Write a Python program to create a dictionary storing Country names as keys and their Capitals as values. Print all keys. b) Write the output of the following code: