Hi everyone!!!
I’m going to give my my own coding problem to you.
Problem -
There are 12 people participating in a tournament of the game Mega Challenge. Their names are as follows - Jordan, Arjun, Loukya, Aisha, Aditi, Kyra, Aadhya, Raikha, Djruti, Aashman, Shaanvi and Kisha.
Goal - Divide them into 4 groups of 3 each.
Input - Input X as the group number.
Output - Display the names in the four groups.
Sample Input-
A
B
C
D
Output -
Group no.A
‘AADHYA’, ‘ARJUN’, ‘KISHA’
Group no.B
‘AISHA’, ‘LOUKYA’, ‘DHRUTI’
Group no.C
‘KYRA2’, ‘AASHMAN’, ‘JORDAN’
Group no.D
‘SHAANVI’, ‘ADITI’, ‘RAIKHA’
Hint - Use random.choice to genarate numbers and don’t forget to import random.
Reply to me and I’ll tell if the code is correct.