STRINGS INITIALIZATION, CONCATENATION & REPETITION || PYTHON PROGRAMMING

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 29

  • @aswinkumar3431
    @aswinkumar3431 6 років тому +3

    I am learning C programming concepts though your UA-cam videos only Sir... Great work...

  • @balasivannarayanabandi2972
    @balasivannarayanabandi2972 3 роки тому +2

    Thank you sir for giving great information to us sir ......really its great thing sir once again thank you so much sir

  • @aboosh2018
    @aboosh2018 3 роки тому

    thanks alot the video is 2years old and we are still learning from it, god bless you

  • @sciencesconnectus7001
    @sciencesconnectus7001 3 роки тому

    Your explanation is very very nice

  • @girishkrishnayadav6693
    @girishkrishnayadav6693 Рік тому

    Very nice explanation sir ❤❤❤

  • @peppaneck6728
    @peppaneck6728 2 роки тому

    thanku so much sir, this one helped a lot

  • @vishnureddy-k5d
    @vishnureddy-k5d Рік тому

    thanku sir

  • @ugabuga4456
    @ugabuga4456 4 роки тому

    I have 2 string exercises which are making me hate programming with python from the heart as they are suppose to be as easy as returning 1+1.
    def pairs(txt):
    if len(txt)%2==0:
    right_indexes=list(range(1,len(txt),2))
    print(right_indexes)
    left_indexes=list(range(0, len(txt), 2))
    print(left_indexes)
    right_letters=map(list(txt).__getitem__,right_indexes)
    left_letters=map(list(txt).__getitem__,left_indexes)
    pairs=list(zip(left_letters,right_letters))
    return pairs
    I've ended up creating this list of paired tuples thinking it might help me understand better as I noticed how comparing 2 things next to each other. Because if the number of things is odd at the right side edge, it's not easy for me to know what to do.
    But it's not helping me to solve these very simple problems as I have no idea how to implement a for or while loop from pairs [(A,B),(B,C),(A,B),(C,C),(C,D)] for these 2 exercises:
    1)Make a function that removes letters that are alone. Like if you have like ABBCABCCCD it would return BBCCC
    2)Make another function which does the opposite turning like ABBCABCCC returns ACABD removing duplicates alight together (not just all).
    my brain only works to turn the whole thing into a set... ;____; When things are like this and you truly have to understand loops.... plus conversion as one is suppose to input a string and output should be a string.... I really feel like I'm the dumbest person alife
    Please help me solve these.

  • @agcsShrutikambarkambar
    @agcsShrutikambarkambar 4 роки тому +1

    The best teacher🙏

  • @balambhavanisankar1924
    @balambhavanisankar1924 4 роки тому +4

    Sir u have covered string fullfledjly...thank u sirr 😊😊

  • @aswinkumar3431
    @aswinkumar3431 6 років тому +5

    Upload more videos on phyton for beginners Sir......☺

  • @jalavadinaveen7824
    @jalavadinaveen7824 4 роки тому +2

    Hello sir please provide next video and previous video in your description then only we can understand easily 🙏

  • @Saksham_2414
    @Saksham_2414 5 років тому +1

    Thank u sir 👍🙏

  • @BoatBrothers22
    @BoatBrothers22 4 роки тому +1

    Tnx a lot sir

  • @jayalakshmia6274
    @jayalakshmia6274 5 років тому +1

    Thank you sir

  • @westfield90
    @westfield90 5 років тому +1

    Thank you !!!!!!!

  • @chinnareddykanakanti4029
    @chinnareddykanakanti4029 4 роки тому

    We can reassign the value to string variable right henve can we say string also mutable

  • @garimab6406
    @garimab6406 4 роки тому +1

    Sir I want to print if given character is a vowel or not, please suggest the correction.
    Def vowels(char):
    achar='aeiou'
    If char=achar:
    Print ("it's a vowel")
    Else:
    Print("it's a consonant")
    Print(vowels('f')

    • @purnaprasad878
      @purnaprasad878 4 роки тому

      Use single quotes to all elements in between square braces.then check the output

    • @praveenrathinavel7409
      @praveenrathinavel7409 4 роки тому

      if char in achar:

    • @AnkitSharma-ik2ks
      @AnkitSharma-ik2ks 4 роки тому

      Please make change in if conditions. You can Use membership operator inplace of =. Or there could be couple of more ways

  • @chinnareddykanakanti4029
    @chinnareddykanakanti4029 4 роки тому

    Shall we devide string into substring

  • @novicecoder5753
    @novicecoder5753 4 роки тому

    Lot of confusion in using iterative statements in strings sir 😵😵😵

  • @eswar_21
    @eswar_21 3 роки тому

    Sir if possible please share your python notes

  • @venkasom
    @venkasom 4 роки тому

    str=input(), this did not work when i tried out

  • @pvkmurthy9676
    @pvkmurthy9676 2 роки тому

    Sir, In Repetition:-
    a = murthy
    b = 3
    c = a * b
    print(c)
    output:- (murthymurthymurthy)
    But I want the expected output as (murthy murthy murthy)
    Can you explain it

    • @rathna1128
      @rathna1128 2 роки тому +2

      a="murthy "
      or print((a+" ")*b)

  • @PavanKumar-wq4hc
    @PavanKumar-wq4hc 2 роки тому

    Thank you sir