0% found this document useful (0 votes)
15 views3 pages

Create List of Numbers With Given

Uploaded by

rohittestuser255
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

Create List of Numbers With Given

Uploaded by

rohittestuser255
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

8/6/24, 3:23 PM Python | Create list of numbers with given range - GeeksforGeeks

# loop to append successors to


# list until r2 is reached.
while(r1 < r2+1 ):

res append(r1)
Read More

Similar Reads
Python | Numbers in a list within a given range
Given a list, print the number of numbers in the given range. Examples: Input :
[10, 20, 30, 40, 50, 40, 40, 60, 70] range: 40-80 Output : 6 Input : [10, 20, 30, 4…
6 min read

Python | Generate random numbers within a given range and store in a list
Given lower and upper limits, Generate random numbers list in Python within a
given range, starting from 'start' to 'end', and store them in the list. Here, we wil…
5 min read

Python | Find missing numbers in a sorted list range


Given a range of sorted list of integers with some integers missing in between,
write a Python program to find all the missing integers. Examples: Input : [1, 2, …
5 min read

Python program to create a list of tuples from given list having number an…
Given a list of numbers of list, write a Python program to create a list of tuples
having first element as the number and second element as the cube of the…
5 min read

Python - Test if elements of list are in Min/Max range from other list
Given two lists, the task is to write a Python Program to return true if all elements
from second list are in range of min and max values of the first list. Examples:…
6 min read

Python Program to Find Numbers Divisible by 7 and Multiple of 5 in a Given…


We use cookies to ensure you have the best browsing experience on our website. By using our
Given
site, you a range
acknowledge thatofyou
numbers, theunderstood
have read and task is to
ourwrite
Cookie aPolicy
Python program
& Privacy Policy to find numbers
divisible by 7 and multiple of 5. Example: Input:Enter minimum 100 Enter…
https://www.geeksforgeeks.org/python-create-list-of-numbers-with-given-range/?ref=lbp 2/6
8/6/24, 3:23 PM Python | Create list of numbers with given range - GeeksforGeeks

Corporate & Communications Address:- A-


143, 9th Floor, Sovereign Corporate Tower,
Sector- 136, Noida, Uttar Pradesh (201305)
| Registered Address:- K 061, Tower K,
Gulshan Vivante Apartment, Sector 137,
Noida, Gautam Buddh Nagar, Uttar
Pradesh, 201305

Company Explore
About Us Job-A-Thon Hiring Challenge
Legal Hack-A-Thon
Careers GfG Weekly Contest
In Media Offline Classes (Delhi/NCR)
Contact Us DSA in JAVA/C++
Advertise with us Master System Design
GFG Corporate Solution Master CP
Placement Training Program GeeksforGeeks Videos
Geeks Community

Languages DSA
Python Data Structures
Java Algorithms
C++ DSA for Beginners
PHP Basic DSA Problems
GoLang DSA Roadmap
SQL DSA Interview Questions
R Language Competitive Programming
Android Tutorial

Data Science & ML Web Technologies


Data Science With Python HTML
Data Science For Beginner CSS
Machine Learning Tutorial JavaScript
ML Maths TypeScript
Data Visualisation Tutorial ReactJS
We use cookies to ensure you have the best browsing experience on our website. By using our
Pandas Tutorial NextJS
site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
NumPy Tutorial NodeJs
https://www.geeksforgeeks.org/python-create-list-of-numbers-with-given-range/?ref=lbp 4/6
8/6/24, 3:23 PM Python | Create list of numbers with given range - GeeksforGeeks

Databases Preparation Corner


SQL Company-Wise Recruitment Process
MYSQL Resume Templates
PostgreSQL Aptitude Preparation
PL/SQL Puzzles
MongoDB Company-Wise Preparation
Companies
Colleges

Competitive Exams More Tutorials


JEE Advanced Software Development
UGC NET Software Testing
UPSC Product Management
SSC CGL Project Management
SBI PO Linux
SBI Clerk Excel
IBPS PO All Cheat Sheets
IBPS Clerk Recent Articles

Free Online Tools Write & Earn


Typing Test Write an Article
Image Editor Improve an Article
Code Formatters Pick Topics to Write
Code Converters Share your Experiences
Currency Converter Internships
Random Number Generator
Random Password Generator

@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved

We use cookies to ensure you have the best browsing experience on our website. By using our
site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy

https://www.geeksforgeeks.org/python-create-list-of-numbers-with-given-range/?ref=lbp 6/6

You might also like