How To Find Index of a Particular Character in a String in Python ?

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • How To Find Index of a Particular Character in a String in Python ? #shorts
    Python String Tutorial - • Strings in Python || P...
    python interview question on strings
    python programming interview questions and answers
    python programming for beginners interview questions
    python interview questions for freshers
    python programming full course
    python programming for beginners tutorial
    python programming for beginners in english
    python programming for beginners full course
    python programming full course playlist
    python programming for interview questions
    python programming tutorial for beginners in english
    python interview questions and answers for freshers
    python interview questions for data analyst
    python interview questions for data engineer
    python coding interview questions and answers for freshers
    python interview questions for freshers tcs
    python interview questions for freshers coding
    python interview questions for freshers in cognizant
    python interview questions for freshers in infosys
    python interview questions for freshers in english
    python interview questions for freshers in accenture
    python interview questions and answers 2022
    python interview questions and answers for freshers 2022
    python coding interview questions for data engineers
    coding things
    #viralshorts
    #viral
    #ytshorts
    #short
    #shorts
    #trending
    #shortsvideo
    #shortvideo #shortsfeed #shortsyoutube
    #pythontutorial
    #strings #stringsinpython
    #index
    #codingthings
    Full Python Course for Beginners Playlist - • Python tutorial for ab...
    Subscribe to coding things - / @codingthings

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

  • @Ashutosh_sengarr
    @Ashutosh_sengarr Месяц назад +1

    It's helpful

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

    very useful, thank you for this short tutorial on python, don't give up

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

    Can you find multiple indexes if the character occurs multiple times

  • @hollow269
    @hollow269 20 дней назад

    Bro how to find the index of the other "i"

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

    you the best guy out there thank you so much

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

    Calling a string variable "str" in Python is bad practice. There is the built-in method str which is then redefined. Any linter would complain about this.

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

      Yes it is not good practice to write string as "str" , but here just for example I have written like this. But in real development environment we need to give some valid and understandable names.
      And if we consider about the reserved keywords in python then "str" is not included in that list.
      But what you are saying is absolutely correct. It is bad practice bcz "str" is a built-in method. Thank you so much for your valuable feedback 😊.