Something's Wrong... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Something's Wrong...

Here's something I'm working on. I tried to indent to fix errors and I'm really not sure why nothing much happens now. https://code.sololearn.com/cI1MfnMSb58z/?ref=app

10th Oct 2020, 7:20 PM
Dustin ๐Ÿ‡บ๐Ÿ‡ธ
4 Answers
+ 10
The code has currently an infinite loop, because the line with: length += 1 ( penultimate line) has the same indentation level as the while loop. put this line 1 indentation level to the right.
10th Oct 2020, 8:03 PM
Lothar
Lothar - avatar
+ 7
Lothar Thanks, I'll fix that indentation. Frogged I'm trying to make something where the user inputs a word that is run through the puzzle function. For each letter, all letters up to that letter would have a chance to be randomly picked. If all the letters combined would form the user's word, they would win. I think I'm going to have to start over, I'm probably doing it wrong ๐Ÿ˜†
10th Oct 2020, 8:38 PM
Dustin ๐Ÿ‡บ๐Ÿ‡ธ
+ 5
your function rerurns nothing. what the hell are you trying? your coding style is๐Ÿค”๐Ÿค”๐Ÿค”very special.... Please add some comments
10th Oct 2020, 7:46 PM
Oma Falk
Oma Falk - avatar
+ 5
11th Oct 2020, 4:28 AM
Bot
Bot - avatar