No products in the cart.

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

Ask Question
  • 1 answers
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 5 years, 1 month ago

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

Ankit Singh 5 years, 1 month ago

No
  • 0 answers
  • 0 answers
  • 2 answers

Harshita Bisht 4 years, 11 months ago

def

Meghna Thapar 5 years, 1 month 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 5 years, 1 month ago

Nd after else?

Gaurav Seth 5 years, 1 month 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 5 years, 1 month 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
  • 0 answers
  • 1 answers

Purnima????? Tripathi?? 5 years, 1 month 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 5 years, 1 month ago

Is n is the lower limit?

Khushi....? ??‍? 5 years, 1 month ago

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

Purnima????? Tripathi?? 5 years, 1 month ago

to_fahrenheit
  • 3 answers

Ankit Singh 5 years, 1 month ago

ans

Ankit Singh 5 years, 1 month ago

Output- 5 times 5 = 25 25

Hemant Kumar Sahu 5 years, 1 month ago

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

Md Afzal 5 years, 1 month ago

flipkart or amazon
  • 2 answers

Khushi....? ??‍? 5 years, 1 month 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 5 years, 1 month ago

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

Sia ? 4 years, 4 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....? ??‍? 5 years, 1 month ago

Hello...
  • 3 answers

Abhinav S 5 years, 1 month ago

Numpy and Scipy

Ankit Singh 5 years, 1 month ago

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

Shruti Duddi 5 years, 1 month ago

SciPy. NumPy.
  • 3 answers

Krishna Patidar 4 years, 9 months ago

Thanks

Khushi....? ??‍? 5 years, 1 month ago

Or void functions

Khushi....? ??‍? 5 years, 1 month ago

Non fruitful function

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