Errors occur inside loops and functions but not outside

Hey guys Im getting really weird feedback from this IDE! Its my first time using it, as someone told me to try it out! I am writing simple input code as well as equivalent statements ie x = input() or print(",,asdasf") then x = input() and  if x == f BUT they both throw errors ONLY when there inside a function definition or loop! I think it super weird, when I use the IDEs suggestions it doesnt work! I dont know why and its really stupid. Please Help, Thanks

2 comments
Comment actions Permalink

Please share a screenshot showing the code you run and the error you get.

0
Comment actions Permalink

 

 

Sorry for leaving the console open but you will notice what I am talking about! Code throws errors but only when it is inside a loop, does the same thing when trying to create functions to condense code. Very strange

0

Please sign in to leave a comment.