1 / 4
May 2013

i am getting nzec for the following code.. plzzz help
import sys
take=io.readline()
num=int(tak)
count=0
if num==1:
print("NIE")
count=1
if num==0:
count=0

while num>1:

if num%2!=0:
print("NIE")
count=1
break
else :
n=n/2
if count==0:
print("TAK")

  • created

    May '13
  • last reply

    May '13
  • 3

    replies

  • 260

    views

  • 2

    users

sir, the indentation is correct. I checked it. I just couldnt replicate the indentation in my post...
plz help.. i am getting nzec in almost all problems i solve by python angry

Then you should start learning how to do that.

Suggested Topics

Want to read more? Browse other topics in Python or view latest topics.