Question: linux Task 1 : Write a Python function that accepts a sentence of words from user and display the following: a ] Middle word b

linux Task 1:
Write a Python function that accepts a sentence of words from user and display the
following:
a] Middle word
b] Longest word in the sentence
c] Reverse all the words in sentence
You can take any string as input from user and perform the above operation.
Example: If user enters This is my first sentence In said example middle word is my ,
Longest word is sentence
reverse word is sihT si ym tsrif ecnetnes
Task 2:
Consider the following scenario. You have a list of students who are attending class
Python and another list of students who are attending class Web Application. Find
the list of students who are attending both the classes. Also find the list of students
who are not common in both the classes. Print it. You can take any two list of string as
input from user and perform the above operation or You can declare any two list in
program and perform the operation.
Task 3:
Complete below programs
a. Addition of two numbers using Perl, you can any two number as input from
user and perform the above operation.
b. Write the Perl script to Remove Empty Directories you can take any string as
input from user and perform the above operation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!