where n and x have to be input from the user. The function should have two parameter n and x and return the sum of the series.
where n and x have to be input from the user. The function should have two parameter n and x and return the sum of the series.
Get the step-by-step solution for this question inside the Vidyadip app.
Get the answer in the appGenerate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.
Block to Block distances (in Mtrs.)
| FROM | To | Distance |
| Human resource | Conference | 110 |
| Human resource | Finance | 40 |
| Conference | Finance | 80 |
Number of computers in each of the blocks/Center is as follows:
| Human resource | 25 |
| Finance | 120 |
| Conference | 90 |
(a) What will be the most appropriate block, where TTC should plan to install the server?
(b) Draw a block to block cable layout to connect all the buildings in the most appropriate manner for efficient communication.
(c) What will be the best possible connectivity out of the following, you will suggest to connect the new setup of offices in Bangalore with its London based office?
Satellite Link, Infrared, Ethernet cable
(d) Which of the following devices will be suggested by you to connect each computer in each of the buildings.
Switch, modem, Gateway
(a) # Line 1 : To open file POEM.txt in read mode
(b) # Line 2 : To check first character of every line is ‘W’ or ‘w’.
(c) # Line 3 : To increase the value of count by 1.
(d) # Line 4 : To call the function count_poem.
Write a program to sort the (name, age, height) tuples by ascending order where name is string, age and height are numbers. The tuples are input by the user. The sort criteria is:
1: Sort based on name;
2: Then sort based on age;
3: Then sort by score.
The priority is that name >age >score.
If the following tuples are given as input to the
program:
ram,19,20
Shyam,15,67
Raju,13,90
Rakesh,17,78
Then, the output of the program should be:
[('Raju', '13', '90'), ('Rakesh', '17', '78'), ('Shyam', '15', '67'), ('ram', '19', '20')]