Python || Q12. Program for the requirement,input aaaabbbccz and expected output 4a3b2c1z

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

ความคิดเห็น • 30

  • @DemonExplainer01
    @DemonExplainer01 2 ปีที่แล้ว +8

    #Another way
    s=input("enter string")
    output=""
    for x in s:
    if x not in output:
    output=output+str(s.count(x))+x
    print(output)

    • @manojkbn
      @manojkbn ปีที่แล้ว

      Yes, but you used built in function count.

  • @swapnesh19
    @swapnesh19 4 ปีที่แล้ว +4

    Love You Sir. Your Teaching style is best in the world.

  • @monusid
    @monusid 4 ปีที่แล้ว +5

    Durga sir is best 👍💯

  • @vishnuvardhandaristhisusef9422
    @vishnuvardhandaristhisusef9422 4 ปีที่แล้ว +2

    Tq sir this question asking for this interview last 2days back thanks for so much sir

  • @jainhitesh6105
    @jainhitesh6105 4 ปีที่แล้ว +2

    Hello Sir, lots of love to you from Mumbai, you are too amazing♥

  • @rajendraprasad5322
    @rajendraprasad5322 5 ปีที่แล้ว +3

    nice and clear explanation sir

  • @kvnagendra5354
    @kvnagendra5354 5 ปีที่แล้ว +6

    King of Python

  • @monusid
    @monusid 4 ปีที่แล้ว +2

    You are so amazing teacher

  • @ShresthaMajumder
    @ShresthaMajumder ปีที่แล้ว +1

    Sir str(c) Kindly please tell in java simply we write output+count+previous but nothing will be change

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  ปีที่แล้ว

      Hello Friend.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @kireetikesani9422
    @kireetikesani9422 4 ปีที่แล้ว +1

    Thank you sir

  • @SrikanthEdurugudem
    @SrikanthEdurugudem 8 หลายเดือนก่อน +1

    sir please help to no digit for only single string
    for Ex aaabbcdd -3a+2b+c+2d

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  8 หลายเดือนก่อน

      Hello Friend.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @mohankumar-qz4rn
    @mohankumar-qz4rn 5 ปีที่แล้ว +1

    When is available python interview question book

  • @gattemjagadeesh5542
    @gattemjagadeesh5542 ปีที่แล้ว +1

    Can you explain HHOOCHH
    Output=H2+O2+C+H2

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  ปีที่แล้ว

      Hello Friend.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @bharaths4685
    @bharaths4685 2 ปีที่แล้ว +1

    Sir my input is abc my expected output is zyx is this possible in python can u explain sir?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  2 ปีที่แล้ว

      Hello Bharath.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @gazalmadan6654
    @gazalmadan6654 2 ปีที่แล้ว +1

    sir, how can we convert 2a3b2c to aabbbcc instead of a2b3c2 to aabbbcc?

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  2 ปีที่แล้ว

      Hello Madan.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @subhamthemusicalguy8851
    @subhamthemusicalguy8851 4 ปีที่แล้ว +2

    I was asked exactly this question.

  • @TinytotsWorld16
    @TinytotsWorld16 2 ปีที่แล้ว +1

    If s='a' output is not generated sir

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  2 ปีที่แล้ว

      Hello Jayasri.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

  • @RamKumar-ww5fg
    @RamKumar-ww5fg ปีที่แล้ว +1

    Pl. Explain c= 1 in else part

    • @DurgaSoftwareSolutions
      @DurgaSoftwareSolutions  ปีที่แล้ว

      Hello Friend.
      Plz contact our online team durgasoftonlinetraining@gmail.com or call us on this number +918885252627, 7207212427/28

    • @meeenix
      @meeenix 8 หลายเดือนก่อน

      which line?