No products in the cart.

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

Ask Question
  • 1 answers

Gaurav Seth 3 years, 10 months ago

Packing and Unpacking a Tuple : In Python there is a very powerful tuple assignment feature that assigns right hand side of values into left hand side. In other way it is called unpacking of a tuple of values into a variable. In packing, we put values into a new tuple while in unpacking we extract those values into a single variable.

  • 3 answers

Gaurav Seth 3 years, 10 months ago

Don't post personal information, mobile numbers and other details.
Don't use this platform for chatting, social networking and making friends. This platform is meant only for asking subject specific and study related questions.
Be nice and polite and avoid rude and abusive language. Avoid inappropriate language and attention, vulgar terms and anything sexually suggestive. Avoid harassment and bullying.
Ask specific question which are clear and concise.
If content is found in violation, the user posting this content will be banned for 30 days from using Homework help section. Suspended users will receive error while adding question or answer. Question comments will be disabled. Read community guidelines at https://mycbseguide.com/community-guidelines.html

Lucky Singh 3 years, 10 months ago

??

Aadya Singh 3 years, 10 months ago

Same to you ?
  • 1 answers

Tec Om 3 years, 10 months ago

in python this code will give you your desired result:
for i in range(10,26): if i%5==0: print(i)
  • 1 answers

Yogita Ingle 3 years, 11 months ago

The following codes must be typed in script mode, saved and then executed.

CODE:

school = input("Enter your school name:")

Class = input("Enter your class:")

section = input("Enter your section:")

print("Your details are", school, "Class", class, "section", section)

OUTPUT:

 Westchester High

 11

 D

  • 1 answers

Lucky Singh 3 years, 10 months ago

hindi=int(input("enter marks in hindi:")) eng=int(input("enter marks in english:")) math=int(input("enter marks in math:")) science=int(input("enter marks in science:")) social_science=int(input("enter marks in social science:")) total=hindi+eng+math+science+social_science percentage=(total/500)*100 print("percentage is:", percentage)
  • 1 answers

Yogita Ingle 3 years, 11 months ago

1. Click ⊞ Win.

2. Scroll down to "Windows Accessories"

 

3. Click the "Windows Accessories" folder.

4. Click "Notepad". This will open Notepad

  • 5 answers

Pankaj Singh 3 years, 8 months ago

print(name[3:10])

Pankaj Singh 3 years, 8 months ago

this will show an error

Poornima Gugan 3 years, 8 months ago

puterSc

Dhruv Agrawal 3 years, 10 months ago

puterSci

Mahadevan Mahadev 3 years, 11 months ago

Output mputersci
  • 1 answers

Sia ? 3 years, 7 months ago

String manipulation basically refers to the process of handling and analyzing strings. It involves various operations concerned with modification and parsing of strings to use and change its data. R offers a series of in-built functions to manipulate the contents of a string.
  • 1 answers

Gaurav Seth 3 years, 11 months ago

The factorial of a number is the product of all the integers from 1 to that number.

For example, the factorial of 6 is <code>1*2*3*4*5*6 = 720</code>. Factorial is not defined for negative numbers, and the factorial of zero is one, <code>0! = 1</code>.

Source Code

<pre> <code># Python program to find the factorial of a number provided by the user. # change the value for a different result num = 7 # To take input from the user #num = int(input("Enter a number: ")) factorial = 1 # check if the number is negative, positive or zero if num < 0: print("Sorry, factorial does not exist for negative numbers") elif num == 0: print("The factorial of 0 is 1") else: for i in range(1,num + 1): factorial = factorial*i print("The factorial of",num,"is",factorial) </code></pre>

 

Output

<pre> <samp>The factorial of 7 is 5040 </samp></pre>
  • 1 answers

Yogita Ingle 3 years, 11 months ago

<pre> class JavaExample { public static void main(String args[]) { int n = 100; System.out.print("Odd Numbers from 1 to "+n+" are: "); for (int i = 1; i <= n; i++) { if (i % 2 != 0) { System.out.print(i + " "); } } } }</pre>
  • 0 answers
  • 1 answers

Yogita Ingle 3 years, 11 months ago

Polymorphism refers to the existence of two or more forms of individuals within the same animal species.

Polymorphism is common in nature; it is related to biodiversity, genetic variation and adaptation; it usually functions to retain variety of form in a population living in a varied environment. The most common example is sexual dimorphism, which occurs in many organisms. Other examples are mimetic forms of butterflies, and human hemoglobin and blood types.

Coelenterates include a large number of colonial species that contain more than one form of individuals which are called zooids. Coelenterates have two basic zooids, polyp and medusa.

  • 1 answers

Sia ? 3 years, 6 months ago

The NOR gate is a combination OR gate followed by an inverter. Its output is "true" if both inputs are "false." Otherwise, the output is "false."
A logical inverter, sometimes called a NOT gate to differentiate it from other types of electronic inverter devices, has only one input. It reverses the logic state. If the input is 1, then the output is 0. If the input is 0, then the output is 1.

  • 1 answers

Yogita Ingle 3 years, 11 months ago

Augmented assignment is the combination, in a single statement, of a binary operation and an assignment statement. ...

e.g. a += 1 means a is assigned a+1. They are useful because they reduce the length of the code and make it look cleaner.

  • 2 answers

Naga Sree 3 years, 11 months ago

(0.0011)2

Yogita Ingle 3 years, 11 months ago

(repetition starts, so stop)

(0.2)10 = (0.0011)

  • 0 answers
  • 2 answers

Tanishtha Yadav 3 years, 10 months ago

number = int(input("Please Enter any Number: ")) reverse = 0 temp = number while(temp > 0): Reminder = temp % 10 reverse = (reverse * 10) + Reminder temp = temp //10 print("Reverse of a Given number is = %d" %reverse) if(number == reverse): print("%d is a Palindrome Number" %number) else: print("%d is not a Palindrome Number" %number)

Naga Sree 3 years, 11 months ago

a = input("enter your word:") n = len(a) b = (0,a,-1) If a==b: print("your word is palindrome") else: print("your word is not a palindrome ")
  • 1 answers

Naga Sree 3 years, 11 months ago

a = int(input("enter a number :")) b = int(input('enter a number ':)) c = a/b print(a,"/",b,"=",c)
  • 1 answers

Yogita Ingle 3 years, 11 months ago

The smallest individual unit in a program is called as Token or a lexical unit.

Python has following tokens:

Keywords                    Identifiers                    Literals                        Operators                    Punctuators

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