No products in the cart.

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

Ask Question
  • 1 answers

Gaurav Seth 3 years, 11 months ago

<th>Sr. No.</th> <th>Key</th> <th>Mutable object</th> <th>Immutable object</th>
1 Basic We can modify the state of a mutable object after it is created We can't modify the state of the object after it is created.
2  Thread safe Mutable objects are not thread safe Immutable objects are thread safe.
3 Final Mutable class are not final To create an immutable object, make the class final
4 Example By default all class and it's object are mutable by nature. String and all wrapper class  are the example of immutable classes
  • 3 answers

Adi Srivastava 3 years, 11 months ago

Tuple is immutable

Milind Pandey 3 years, 11 months ago

the correct one is t=[1,"a",9.2] t[0]=6

Harsh Raj Kushwaha 3 years, 11 months ago

t[0]=1
  • 2 answers

Tia Clarice Jose 3 years, 11 months ago

COMMA SEPERATED VALUES-CSV

Kanishk Gupta 3 years, 11 months ago

Comma seperated values
  • 1 answers

Kanishk Gupta 3 years, 11 months ago

Follow the instructions given in Sumita Arora text book
  • 1 answers

Rohan Rajput 4 years ago

Radiowave or microwave
  • 3 answers

Aditi ?? 4 years ago

Ya but preeti Arora is also good

Rachit Dwivedi 4 years ago

Just by SUMITA ARORA COMPUTER SCIENCE FOR CLASS 11 and 12 Give python section a read you will get to know basics of programming further try back questions of book to develop aptitude.
You know abot your book you know then see to youtube and learn it
  • 3 answers

Badboy Gaming 3 years, 10 months ago

Sir nahi ayaa sir mere pass computer science old hai mai kyaa kruu sir phyton aye ge confused ho

Badboy Gaming 3 years, 11 months ago

Sir computer science me sllubuss me kuch changed huyaa hai kya old 2021

Aditi ?? 4 years ago

Aa jayega agar app uska code no. Ya model likhoge toh
  • 2 answers

Anukriti Jain 4 years ago

3 types. LAN,MAN,WAN.

Yogita Ingle 4 years ago

A group of computers which are connected to each other and follow similar usage protocols for the purpose of sharing information and having communications provided by the networking nodes is called a Computer Network. 

A network may be small where it may include just one system or maybe as large as what one may want. The nodes may further be classified into various types. These include:

  • Personal Computers
  • Servers
  • Networking Hardware
  • General Hosts

Networking can be classified into three types:

  1. Types of Computer Networks
  2. Topology
  3. Interpreters
  • 1 answers

Yogita Ingle 4 years ago

Interspace is a client/server software program that allows multiple users to communicate online with real-time audio, video and text chat in dynamic 3D environments. Interspaceprovides the most advanced form of communication available on the Internet today.

The Interspace is a vision of what the Internet will become, where users cross-correlate information in multiple sources. It is an applications environment for interconnecting spaces to manipulate information, much as the Internet is a protocol environment for interconnecting networks to transmit data.

  • 3 answers

Aditi ?? 4 years ago

Yah you can write to this I am aditi

Milind Pandey 4 years ago

Abhijeet you can write your query here also there is no way to contact you untill you will provide your contact info.

Mamta ... 4 years ago

how to contact uhh but
  • 1 answers
A pile of object that can one that be neatly arranged.
  • 1 answers

Milind Pandey 4 years ago

stack=[] #stack is only variable name we just created empty list c="y" while c="y": a=input("Enter the value to store in stack") stack.append(a) c=input("do you want to enter more") print(stack)
  • 2 answers

Yojeet Kashyap 4 years, 1 month ago

4

Gaurav Seth 4 years, 1 month ago

1. Using Exponent

<textarea data-settings="" readonly="readonly" wrap="soft"></textarea>

1

2

3

number = int(input("enter a number: "))

sqrt = number ** 0.5

print("square root:", sqrt)

Output:

enter a number: 64
square root: 8.0

In above program, first we’re taking a number from user as input and the entered value will be converted to int from string and will store into variable called number. Then we are using  exponent (**) sign, which is used to find out the power of a number. But we know that if a number have power ½ or 0.5 then it will represent to the square root of that number. That’s why we are using 0.5 as power here. So the number**0.5 will give us square root of that number and will be stored in variable named as sqrt. In last line we’re just printing the square root of the number.

2. Using math.sqrt() Method

<textarea data-settings="" readonly="readonly" wrap="soft"></textarea>

1

2

3

4

import math

number = int(input("enter a number:"))

sqrt = math.sqrt(number)

print("square root:" , sqrt)

sqrt() is the predefined method used to find square root in python. But we have to import math module to use the sqrt() method. In first line, we’re importing math module, then in next line, taking input from user. After that we’re finding the square root of the number using sqrt() method and result will be stored into sqrt variable. In last line, just printing the square root as in first program.

3. Using math.pow() Method

<textarea data-settings="" readonly="readonly" wrap="soft"></textarea>

1

2

3

4

import math

number = int(input("enter a number:"))

sqrt = math.pow(number, 0.5)

print("square root: ", sqrt)

pow() is also a predefined method to find out power of a number, it takes two arguments as input, first is the number itself and second one is power of that number. The program is same as first program where we’re using (**) sign to find out the square root but only different is this that here we’re using a predefined method pow() instead of  (**) sign to get the power of that number.

If you’ve any problem related with article or have any other possible way to find square root in python then please let us know in comments.

<center> </center>
  • 1 answers

Agneepradeep Verma 4 years, 1 month ago

Year=int(input("enter the year")) If year÷4==0: print('the',year,'year is a leap year') else: print('this is not a leap year')

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