Observe the code and find which …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Observe the code and find which of the option is not the possible output?
Also specify the minimum and maximum value of stop.
import random
Fruits=["Apple","Mango","Berry","Grapes","Lemon"]
start=random.randrange(2)+1
stop=random.randint(start+1,start+2)
for i in range(start,stop):
print(Fruits[i],end="&")
a)Apple&Mango&
b)Mango&Berry&
c)Mango&
d)Berry&Grapes&Lemon
Posted by Pravin Kumar 4 years, 1 month ago
- 1 answers
Related Questions
Posted by Hanni Pham 1 year, 1 month ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 4 months ago
- 2 answers
Posted by Syedali Fathima 1 year, 3 months ago
- 1 answers
Posted by Priya Shukla 1 year, 3 months ago
- 1 answers
Posted by Prawar Narang 1 year, 3 months ago
- 1 answers
Posted by Hanni Pham 1 year, 1 month ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
🦋Tejasvi Singh🦋 4 years ago
1Thank You