PROGRAMMING IN PYTHON || WEEK 4 || GRADED ASSIGNMENT SOLUTION|| IIT MADRAS ONLINE BSC DEGREE | GRPA

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Sir, is this code for GRPA 4 correct?

names = list(map(str, input().lower().split(", ")))
date = list(map(int, input().split(", ")))
common = []
pair_list = []
for i in range(len(date)):
for j in range(len(date)):
if i == j:
continue
elif date[i] == date[j]:
if names[i] < names[j]:
pair_list.append(names[i])
pair_list.append(names[j])
common.append(pair_list)
pair_list = []

rubix
Автор

Code 4 doesn't work
I redo all of this but doesn't getting any output

rishavsagar
Автор

code 2 is also not working
i cheched 5 times

AYUSHSINGH-zkbj