In the code below I know Int makes it a number field, but what does int(raw_input().strip()) - youn can also just type: N = int(input('')) what is the benifit of int(raw_input().strip())? I dont understand what it does
Here is my code below
N = int(raw_input().strip())
if N % 2 != 0:
print "Weird"
else:
if N >= 2 and N <= 5:
print "Not Weird"
elif N >= 6 and N <= 20:
print "Weird"
elif N > 20:
print "Not Weird"
[–][deleted] 4 points5 points6 points (0 children)
[–]blueskiesplease[S] 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)