19. String Validator: Hackerrank | Python Solution Explained

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

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

  • @fobos6166
    @fobos6166 8 месяцев назад +3

    thank you sir. I didn't know any() function

    • @AmirCharkhi
      @AmirCharkhi  8 месяцев назад +2

      Yeah great that you have an understanding of the various functions. Let me know if you have any questions🙂

  • @Ritvik___
    @Ritvik___ Год назад +1

    Very simple explanation 👏

    • @AmirCharkhi
      @AmirCharkhi  Год назад

      Thanks for watching, let me know what else would you like to see🙂

    • @Ritvik___
      @Ritvik___ Год назад +1

      @@AmirCharkhi please upload all hackerrank problems

    • @AmirCharkhi
      @AmirCharkhi  Год назад

      @@Ritvik___ Will do mate :)

  • @SeeratFatima-bp3ph
    @SeeratFatima-bp3ph 3 месяца назад +1

    How can we use loop while taking our output???

    • @AmirCharkhi
      @AmirCharkhi  3 месяца назад +1

      What exactly do you mean?🙂 happy learning💐

    • @SeeratFatima-bp3ph
      @SeeratFatima-bp3ph 3 месяца назад

      Means we are using for loop and printing our program at the same time
      Is it also possible in c++??

    • @SeeratFatima-bp3ph
      @SeeratFatima-bp3ph 3 месяца назад

      Your videos are helping me alot ❤and thanks for paying attention 💫

  • @gauv9304
    @gauv9304 Год назад

    But how it will return False is any one of them becomes false?
    i think this is a better way
    print('True') if any(i.isalnum() for i in s) else print('False')

    • @AmirCharkhi
      @AmirCharkhi  9 месяцев назад +1

      In programming there are multiple ways of performing a task and you might be right :)