Which is used in python to form a block of code?
The format function, when applied on a string returns ___________
----------- is a single expression anonymous function often used as an inline function.
Which of the following keywords in programming does not use the 'else' keyword?
What is the output of the following Python code?
import math
print(math.copysign(1, -2))
How is a switch-case statement typically implemented in Python?
What will be the output of the following Python code?
s={1, 2, 3}
s.update(4)
s
How do you append values to a list in Python?
What is the output of the given code?
def evenodd(x):
if x%2==0:
print("even")
else
print("odd")
evenodd(3458)
Find the output of the following code
string = "abcdefghijkl@pqrs.tuv wxyz"
x = string.find('@')
y = string.find(' ', x)
sub = string[x+1:y]
print(sub)