No products in the cart.

Ask questions which are clear, concise and easy to understand.

Ask Question
  • 1 answers

Hemanth Chitturi 4 years, 2 months ago

well bubble sort is better than insertion sort only when someone is looking for top k elements from a large list of number i.e. in bubble sort after k iterations you'll get top k elements. However after k iterations in insertion sort, it only assures that those k elements are sorted.
  • 1 answers

Ankit Singh 4 years, 2 months ago

Python libraries are collection of modules that together cater to specific type of applications and requirements.
  • 1 answers

Ankit Singh 4 years, 2 months ago

No
  • 0 answers
  • 0 answers
  • 2 answers

Harshita Bisht 4 years, 1 month ago

def

Meghna Thapar 4 years, 2 months ago

Functions are defined using the def keyword. After this keyword comes an identifier name for the function, followed by a pair of parentheses which may enclose some names of variables, and by the final colon that ends the line. Next follows the block of statements that are part of this function. n Swift 4, a function is defined by the "func" keyword. ... To use a function, you "call" that function with its name and pass input values (known as arguments) that match the types of the function's parameters. Function parameters are also called as 'tuples'.

  • 2 answers

Vivek Vaish 4 years, 2 months ago

Nd after else?

Gaurav Seth 4 years, 2 months ago

Answer:infile = file('./oldfile.txt')

 

newopen = open('./newfile.txt', 'w')

 

for line in infile :

 

if 'bad' in line:

 

line = line.replace('.' , '')

 

if 'naughty' in line:

 

line = line.replace('.', '')

 

else:

  • 1 answers

Gaurav Seth 4 years, 2 months ago

def recur_factorial(n):  

   if n == 1:  

       return n  

   else:  

       return n*recur_factorial(n-1)  

# take input from the user  

num = int(input("Enter a number: "))  

# check is the number is negative  

if num < 0:  

   print("Sorry, factorial does not exist for negative numbers")  

elif num == 0:  

   print("The factorial of 0 is 1")  

else:  

   print("The factorial of",num,"is",recur_factorial(num))  

  • 0 answers
  • 1 answers

Purnima????? Tripathi?? 4 years, 2 months ago

Condition in python means if we have a condition and we want to check either it's true or false, then we can check by applying if-else condition.
  • 2 answers

Neeraj Pawar 4 years, 2 months ago

Is n is the lower limit?

Khushi....? ??‍? 4 years, 2 months ago

Yeh to infinite loop ho jaega....
  • 1 answers

Purnima????? Tripathi?? 4 years, 2 months ago

to_fahrenheit
  • 3 answers

Ankit Singh 4 years, 2 months ago

ans

Ankit Singh 4 years, 2 months ago

Output- 5 times 5 = 25 25

Hemant Kumar Sahu 4 years, 2 months ago

My question is,what is variable output equal to after the code is executed
  • 1 answers

Md Afzal 4 years, 2 months ago

flipkart or amazon
  • 0 answers
  • 2 answers

Khushi....? ??‍? 4 years, 2 months ago

A statement is a complete line of code that performs some action, while an expression is any section of the code that evaluates to a value. ... Every expression can be used as a statement (whose effect is to evaluate the expression and ignore the resulting value), but most statements cannot be used as expressions.

Ankit Singh 4 years, 3 months ago

Expression includes operators and operands. While statement includes keywords, variables, ranges etc.
  • 1 answers

Sia ? 3 years, 5 months ago

In C++, a pointer refers to a variable that holds the address of another variable. Like regular variables, pointers have a data type. For example, a pointer of type integer can hold the address of a variable of type integer. A pointer of character type can hold the address of a variable of character type.

Hi
  • 1 answers

Khushi....? ??‍? 4 years, 3 months ago

Hello...
  • 3 answers

Abhinav S 4 years, 2 months ago

Numpy and Scipy

Ankit Singh 4 years, 3 months ago

Two libraries are math and random, And there methods are import math and import random respectively.

Shruti Duddi 4 years, 3 months ago

SciPy. NumPy.

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App