Skip to content

Commit ddbaf90

Browse files
committed
dictionary file added
1 parent 51811a9 commit ddbaf90

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Question set - 4

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
1. Write a Python script to print a dictionary where the keys are numbers between 1 and 15 (both included) and the values are square of keys.
2+
3+
2.Write a Python program to combine values in python list of dictionaries.
4+
5+
Sample data: [{'item': 'item1', 'amount': 400}, {'item': 'item2', 'amount': 300}, {'item': 'item1', 'amount': 750}]
6+
Expected Output: Counter({'item1': 1150, 'item2': 300})
7+
8+
9+
3. Write a Python program to create a dictionary from a string.
10+
NOTE: Track the count of the letters from the string.
11+
12+
4. Write a Python function that checks whether a passed string is palindrome or not.
13+
14+
e.g., madam
31.8 KB
Loading

0 commit comments

Comments
 (0)