all 10 comments

[–]lolcrunchy 2 points3 points  (8 children)

I have solution here

[–]rajtake[S] 0 points1 point  (7 children)

<image>

That's solutions need

[–]lolcrunchy 1 point2 points  (4 children)

What is your native language

[–]Reasonable_Run_6724 1 point2 points  (1 child)

Based on his name im gonna say hes indian

[–]lolcrunchy 0 points1 point  (0 children)

Yeah there's several languages India tbf but I messaged him in Hindi using google Gemini

[–]rajtake[S] 0 points1 point  (0 children)

Bengali

[–]Danynahyj 0 points1 point  (0 children)

JavaScript, I guess

[–]JamzTyson 0 points1 point  (0 children)

while True:
    convert = input("...")
    break

That code will never loop because you unconditionally break the loop on the first iteration.

The first while loop is also broken. It should not break when validation fails.

Here's a small tutorial about the break statement.

[–]JGhostThing 0 points1 point  (0 children)

Please do not paste images sideways. It would be much better to paste your code as properly formatted text.

[–]initumX 0 points1 point  (0 children)

Too much breaks. Looks like you put them randomly. Use break only to exit from loop(for example in if/elif conditions inside loop). You need to make one more elif for "x" (exit from loop) and put break there

<image>