Please select a subject first
Advertisements
Advertisements
You are planning to go on a vacation. You surfed the Internet to get answers to the following queries:
- Weather conditions
- Availability of air tickets and fares
- Places to visit
- Best hotel deals
Concept: undefined >> undefined
Write the difference between the following:
Active and passive footprints.
Concept: undefined >> undefined
Advertisements
Give full form of ISCII.
Concept: undefined >> undefined
Explain the following along with their applications.
Machine Learning
Concept: undefined >> undefined
Two friends decide who gets the last slice of a cake by flipping a coin five times. The first person to win three flips wins the cake. An input of 1 means player 1 wins a flip, and a 2 means player 2 wins a flip. Design an algorithm to determine who takes the cake.
Concept: undefined >> undefined
Suppose you are collecting money for something. You need ₹ 200 in all. You ask your parents, uncles, and aunts as well as grandparents. Different people may give either ₹ 10, ₹ 20, or even ₹ 50. You will collect till the total becomes 200. Write the algorithm.
Concept: undefined >> undefined
Write an algorithm to find the greatest among two different numbers entered by the user.
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:3] + mySubject[3:])
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject[:: -2])
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(2*mySubject)
Concept: undefined >> undefined
Write a program to read a list of n integers (positive as well as negative). Create two new lists, one having all positive numbers and the other having all negative numbers from the given list. Print all three lists.
Concept: undefined >> undefined
Write a program to read a list of elements. Modify this list so that it does not contain any duplicate elements, i.e., all elements occurring multiple times in the list should appear only once.
Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(tuple1.index(45))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(tuple1.count(45))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(len(tuple2))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(max(tuple1))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(min(tuple1))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
print(sum(tuple2))Concept: undefined >> undefined
Consider the following tuples, tuple1 and tuple2:
tuple1 = (23,1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statement:
p r i n t ( s o r t e d ( t u p l e 1 ) )
print(tuple1)Concept: undefined >> undefined
Write a program to input the names of n students and store them in a tuple. Also, input a name from the user and find if this student is present in the tuple or not. We can accomplish these by:
using the built-in function
Concept: undefined >> undefined
