GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Which correctly calls the add() function? def add(a, b, c):…

Which correctly calls the add() function? def add(a, b, c): print(a + b + c)

Read Details

Consider the list my_list = [‘www’, ‘python’, ‘org’] . Choos…

Consider the list my_list = [‘www’, ‘python’, ‘org’] . Choose the option that returns ‘www.python.org’ as the value to my_string.

Read Details

In the following code, the variable val is the function call…

In the following code, the variable val is the function call’s _____. def print_square_area(size): area = size * size print(“A square of size {} has area {}”.format(size, area))val = float(input(‘Enter size of square: ‘))print_square_area(val)

Read Details

How many times does the while loop execute for the given inp…

How many times does the while loop execute for the given input values of -1 4 0 9? user_num = 3while user_num > 0: # Do something user_num = int(input())

Read Details

Which of the following options can sort the list in descendi…

Which of the following options can sort the list in descending order? i. list_name.sort(reverse=True) ii. sorted(list_name, reverse=True) iii. sorted(list_name)[::-1] iv. sorted(list_name)

Read Details

What is the length of the dictionary my_dict = {‘Country’:’I…

What is the length of the dictionary my_dict = {‘Country’:’India’, ‘State’: {‘City’:’Delhi’, ‘Temperature’:40}} ?

Read Details

For num_diff = Diff(5, 25) , complete the code to print the…

For num_diff = Diff(5, 25) , complete the code to print the following output when num_diff is printed.First Number: 5 Second Number: 25 Difference: -20 class Diff: def __init__(self, num1, num2): self.num1 = num1 self.num2 = num2 def __str__(self): XXX

Read Details

Which of the following statements reads up to 100 bytes from…

Which of the following statements reads up to 100 bytes from a file named student.txt?

Read Details

Complete the code to generate the following output. 16 8 cl…

Complete the code to generate the following output. 16 8 class Rect(): def __init__(self,length,breadth): self.length = length self.breadth = breadth def getArea(self): print(self.length*self.breadth)class Sqr(Rect): def __init__(self,side): self.side = side Rect.__init__(self,side,side) def getArea(self): print(self.side*self.side)if __name__ == ‘__main__’:XXX

Read Details

How the place() function put the widget on the screen ?

How the place() function put the widget on the screen ?

Read Details

Posts pagination

Newer posts 1 … 9 10 11 12 13 … 90,834 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top