#37 : DefaultDict Tutorial | Hackerrank Python Solutions

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024
  • Thanks if u r Watching us....
    #Python #Dev19 #Hackerrank #Programmers #Python3 #C #C++ #Java #Python #C
    Please Subscribe Us ....

Комментарии • 12

  • @pranjalnama2420
    @pranjalnama2420 3 года назад +5

    This solution and explanation is so good but the volume is so low that I can't listen it properly even with the headphones but nice explanation thanks

  • @avilashbhowmik3995
    @avilashbhowmik3995 3 года назад +3

    *_I'm watching this video at dawn time.It's 4:00 am right now.Because,yeasterday I could not hear volume of this video properly.But now I'm watching this only because of his nice explanation. Take love from Bangladesh._*

  • @devendraghule8367
    @devendraghule8367 7 месяцев назад +4

    tested my speaker twice haha

  • @user-py7mh5tt8t
    @user-py7mh5tt8t Месяц назад

    A, B = map(int, input().split())
    List = []
    for i in range(A):
    s = input().rstrip()
    List.append(s)
    for i in range(B):
    s = input().rstrip()
    indices = [index + 1 for index, value in enumerate(List) if value == s]
    if indices:
    print(' '.join(map(str, indices)))
    else:
    print(-1)

  • @Dudez_fitness
    @Dudez_fitness 3 года назад +2

    Thanks brother for ur support

  • @tr0ller774
    @tr0ller774 2 года назад +1

    Thanks man !!!!

  • @travel_ghost22
    @travel_ghost22 3 года назад

    your code is not running in jupyter

  • @deepthik9500
    @deepthik9500 3 года назад

    In For loop Input taken as rstrip() why taken like this and what is the use of the rstrip

    • @travel_ghost22
      @travel_ghost22 3 года назад +1

      video creator doesnot bother to reply anyone.
      You can google about rstrip and if not understood I can help you.

  • @travel_ghost22
    @travel_ghost22 3 года назад

    your explanation of line 11 is so confusing....you could have simply explained it in hindi

    • @groot5209
      @groot5209 2 года назад +1

      it will append index of the input