In this lab project:You are a given a CSV file, and you should copy the file into some directory on
the server.
Using Python- you will import the CSV file and analyse the data frames (i.e. data structured as
columns and rows). To be able to do this - you need to install “pandas” on Python.
1. Write both TCP client and TCP server in Python version 3.8 or above.
2. Test the network connectivity between TCP client and TCP server.
3. Import the CSV file into the TCP server.
4. Find the number of rows and columns of the data set, and display the results on the TCP client
machine.
5. Output the 2
nd row on the TCP client machine.
6. Find the averages(mean) of the statistics for NBA players and display the results on the TCP
client machine.
pop()
a=[10, 20,30,40,50,30]
a. remove(30)
Write a Python program that get a number using keyboard input. (Remember to use input for Python 3 but raw_input for Python 2.)
n distributed systems, most of the time the processing is based on client/server computing- the
client will request a service from the server and the server will process the service-request and
then send a reply to the client. The communication takes place over wired or wireless computer
networks.
In this lab project:You are a given a CSV file, and you should copy the file into some directory on
the server.
Using Python- you will import the CSV file and analyse the data frames (i.e. data structured as
columns and rows). To be able to do this - you need to install “pandas” on Python.
1. Write both TCP client and TCP server in Python version 3.8 or above.
2. Test the network connectivity between TCP client and TCP server.
3. Import the CSV file into the TCP server.
4. Find the number of rows and columns of the data set, and display the results on the TCP client
machine.
5. Output the 2
nd row on the TCP client machine.
def countdown (n):
If n<=0:
print('Blastoff!')
else:
print(n)
countdown(n-1)
Write a new recursive function countup that expects a negative argument and counts "up" from that number.
Assume, you have been given a tuple with details about books that won the Good Reads Choice Awards.
book_info = (
("Best Mystery & Thriller","The Silent Patient",68821),
("Best Horror","The Institute",75717),
("Best History & Biography","The five",31783 ),
("Best Fiction","The Testaments",98291)
)
Write a Python program that prints the award category, the book name, and its total votes earned as shown below.
Write a source code of object detection from any of the videos.
Write a function solution that given a three digit integer N and Integer K, returns the maximum possible three digit value that can be obtained by performing at most K increases by 1 of any digit in N
given N=192, N=4, output should be 591
Write a Python program that takes a dictionary as an input from the user and then prints the average of all the values in the dictionary.
[You are not allowed to use len() and sum()]
Hint (1): For taking dictionary input
Approach(1): For taking dictionary as an input from the user, you may take the whole dictionary as a string using the input() function. Then you can use the split(), strip() functions and conditions to get the keys and values from the string. Finally, you can make the dictionary using the obtained data.
Approach(2): If the first approach seems too difficult you can create an empty dictionary and then just run a simple loop. For each iteration ask the user for a key and a value using the input() function and keep updating the dictionary with the key and value.
Hint (2): After you have a dictionary, you can use dictionary functions to get all the values from it, run loop to calculate the sum and the total number of values in the dictionary in order to find out the average.
.
10. Given the real numbers x, y (x (y)
Substitute for the sum, and the largest multiplied by a multiple