Whenever I type this i=input() then in next line print ("abcd"+i) it shows 'i' is not defined

Question:
How will I solve this???
Repl link:

code snippet

Please send a link to your repl, otherwise we can’t help you

3 Likes

Theoretically if your code is like this

i=input()
print("abcd"+i)

Without any code like del i in between it should work with no problem

So, if you have this issue, please send us the repl link to the repl you got this issue with, so that we can examine if there is any other code that cause the problem but you didn’t tell here, thank you.

4 Likes

Welcome to the forums @anshumanbanerj2!

To add on to @TaokyleYT, make sure you have no unnecessary indents on the lines, as these will cause bugs.

2 Likes