What to do when len does not return the number of integers in range 1 100

0 votes
May 28, 2019 in Python by Nisa
• 1,090 points
186 views

1 answer to this question.

0 votes
You can use the following code block:

x=range(1,100)
len(x)

Output: 99
answered May 28, 2019 by Fata
• 1,050 points

Related Questions In Python

0 votes
1 answer

What does the return statement do in Python?

The print() function is use to write ...READ MORE

answered Oct 1, 2018 in Python by SDeb
• 13,300 points
565 views
0 votes
1 answer

What is the logic to check if a number is prime or not in python?

n = int (input ('ENTER NUMBER TO ...READ MORE

answered Jul 16, 2020 in Python by amrut
• 240 points
318 views
0 votes
1 answer

What is the Python logic to count the number of capital letters in a file?

Hi, You can use this piece of code, ...READ MORE

answered Jun 26, 2020 in Python by Roshni
• 10,500 points
1,200 views
0 votes
0 answers
0 votes
1 answer

What is the meaning of “int(a[::-1])” in Python?

Assumming a is a string. The Slice ...READ MORE

answered Aug 27, 2018 in Python by Priyaj
• 58,060 points
3,088 views
0 votes
1 answer

What to do when I get and error saying python not recognized as internal or external command?

You need to set up the path ...READ MORE

answered May 28, 2019 in Python by Fata
• 1,050 points
972 views
0 votes
1 answer

What are higher-order functions?

Higher-order functions are those functions that either ...READ MORE

answered Jul 25, 2019 in Python by Fata
• 1,050 points
207 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP