• clcoding Profile Picture

    Python Coding @clcoding

    2 years ago

    Rewrite the following program using for loop. lst = ['desert', 'dessert', 'to', 'too', 'lose', 'loose'] s = 'Mumbai' i = 0 while i < len(lst) : if i > 3 : break else : print(i, lst[i], s[i]) i += 1 Solution - clcoding.com/2023/11/rewrit…

    11 17 95 27K 32
  • Earnesto037 Profile Picture

    Earnest Codes @Earnesto037

    2 years ago

    @clcoding Here is the code rewritten using a for loop:🎯 lst = ['desert', 'dessert', 'to', 'too', 'lose', 'loose'] s = 'Mumbai' for i in range(4): print(i, lst[i], s[i]) This code will print the following output: 👇 0 desert M 1 dessert u 2 to m 3 too b

    0 0 6 385 1
  • xoreax_eaxeax Profile Picture

    𓂆 MOV CR3, 0 𓂆 @xoreax_eaxeax

    2 years ago

    @clcoding

    xoreax_eaxeax tweet picture

    0 0 2 465 0
    Download Image
  • KbarisHatipoglu Profile Picture

    KbarisHatipoglu @KbarisHatipoglu

    2 years ago

    @clcoding is it that you want? >>> for i in list(enumerate(zip(lst,s),0)): ... print(i) ... (0, ('desert', 'M')) (1, ('dessert', 'u')) (2, ('to', 'm')) (3, ('too', 'b')) (4, ('lose', 'a')) (5, ('loose', 'i'))

    0 0 2 192 0
  • ImranGifted Profile Picture

    Mohammad Imran Raza Qadri 🇮🇳 @ImranGifted

    2 years ago

    @clcoding shortest code, lst = ['desert', 'dessert', 'to', 'too', 'lose', 'loose'] s = 'Mumbai' print([(i, lst[i], s[i]) for i in range(4)])

    1 0 0 368 0
  • Bekk_Youssef Profile Picture

    Y.BEKKAOUI @Bekk_Youssef

    2 years ago

    @clcoding lst = ['desert', 'dessert', 'to', 'too', 'lose', 'loose'] s = 'Mumbai' for i in range(len(lst)): if i > 3: break else: print(i, lst[i], s[i]) The output of the provided program would be: 0 desert M 1 dessert u 2 to m 3 too b

    0 0 0 118 0
  • WyckieWawire Profile Picture

    Wycliffe Wawire @WyckieWawire

    2 years ago

    @clcoding lst = ['desert', 'dessert', 'to', 'too', 'lose', 'loose'] s = 'Mumbai' for i in range(len(lst)): if i > 3: break else: print(i, lst[i], s[i])

    0 0 0 188 0
  • habeebslm Profile Picture

    Code Chaos @habeebslm

    2 years ago

    @clcoding lst = ['desert', 'dessert', 'to', 'too', 'lose', 'loose'] s = 'Mumbai' for i in range(0, len(lst)): if i > 3: break else: print(i, lst[i], s[i]) ---- this is what i came up with

    0 0 0 23 0
  • Kadiri_Dauda Profile Picture

    Dauda Kadiri @Kadiri_Dauda

    2 years ago

    @clcoding lst = ['desert', 'dessert', 'to', 'too', 'lose', 'loose'] s = 'Mumbai' for i in range(len(lst)): if i > 3 : break else : print(i, lst[i], s[i])

    0 0 0 42 0
  • 3brown1bluee Profile Picture

    WM @3brown1bluee

    2 years ago

    @clcoding For i in range(len(lst)): If i> 3: break else: print(i, lst[i], s[i])

    0 0 0 257 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer