def Change(X): for K, V in X.items(): L1.append(K) L2.append(V) D = {1: "ONE", 2: "TWO", 3: "THREE"} L1 = [] L2 = [] Change(D) print(L1) print(L2) print(D)
PASSENGERS.DAT
Create()
SearchDestn(D)
D
UpdateFare()
Delete_Theatre()
Assume that you are working in the IT Department of a Creative Art Gallery (CAG), which sells different forms of art creations like Paintings, Sculptures etc. The data of Art Creations and Artists are kept in tables Articles and Artists respectively. Following are few records from these two tables:(i) To display all the records from the Articles table in descending order of Price.(ii) To display the details of Articles which were created in the year 2020.(iii) To display the structure of the Artists table.(iv-a) To display the name of all artists whose Article is Painting using Equi Join.(iv-b) To display the name of all artists whose Article is 'Painting' using Natural Join
‘Swabhaav’ is a big NGO working in the field of Psychological Treatment and Counselling, having its Head Office in Nagpur. It is planning to set up a center in Vijayawada. The Vijayawada Center will have four blocks – ADMIN, PSYCHIATRY, PSYCHOLOGY, and ICU. You, as a Network Expert, need to suggest the best network-related solutions for them to resolve the issues/problems mentioned in questions (i) to (v), keeping the following parameters in mind:
Suman has created a table named WORKER with a set of records to maintain the data of the construction sites, which consists of WID, WNAME, WAGE, HOURS, TYPE, and SITEID. After creating the table, she entered data in it, which is as follows :
"P_record.csv"
["Gunjan", "Jaundice", 4, 15000]
read_data()
count_rec()
('Yellow', 237, 250, 68)
push_Clr(ClrStack, new_Clr)
pop_Clr(ClrStack)
isEmpty(ClrStack)
def ExamOn(mystr): newstr = "" count = 0 for i in mystr: if count % 2 != 0: newstr = newstr + str(count - 1) else: newstr = newstr + i.lower() count += 1 newstr = newstr + mystr[:2] print("The new string is:", newstr) ExamOn("GenX")
def Sum(N): S = 0 for I in range(1, N + 1): S = S + I return S print(Sum(10))
import random Cards = ["Heart", "Spade", "Club", "Diamond"] for i in range(2): print(Cards[random.randint(1, i+2)], end="#")