Computer Science > Computational Thinking And Programming 2 > Functions
Identify the correct possible output(s) of the following code segment. Also write the minimum and the maximum possible values of the variable
bimport random s = "War and Peace" a = len(s) // 2 for i in range (4): b = random.randrange(i, a) print(s[b], end="+")
Keep Practicing
Edvaya Target
Board & Competitive Exams Made Easy
Edvaya Target is built for students preparing for JEE (Main & Advanced), NEET UG, and Board Exams (CBSE, ISC & State Boards) — using a practice-first approach that actually works.
Current Question
Community Stats
Track Your Progress
Sign up to save your practice progress, add favorites, and get personalized insights.

