Coding Contest
Coding Contest
CODING CONTEST
* Solve all questions * Make a PDF and submit it * Attend all questions mandatory
A B
Float Coding With Sagar
Dictionary 20.3586
Python 3 Release date 3 December 2009
Full form of CWS Coding With Sagar
Founder of python key : value
156
Guido Van Rossum
Dennis Ritchie
Q.2 Write a python program to find the sum of all values in a dictionary.
3M
Example:
3M
Example:
Suppose list is [56, 34, 8, 54, 23, 89, 76, 46, 21, 67, 99] Number of even
Q.4 What have you learned since the start of this class till now, write the
2M
names of the topics and how was your overall experience in the class.
Q.6 MCQ-
6M
x = 3
if (x > 2):
x = x * 2;
if (x > 4):
x = 0; print(x)
a. x will always equal 0 after this code executes for any value of x
B. string
C. boolean
D. integer
a = 3
b = (a != 3)
print(b)
A. True
B. False
C. 0
D. 3
E. Syntax error
Q.7 Write a python program to calculate profit or loss. Ask input from user.
4M
Example:
Enter purchase amount = 50000 Enter selling amount = 55000 You got profit of 5000