Apr-27-2017, 07:30 AM
(Apr-27-2017, 04:43 AM)RandoomDude Wrote: This is my attempt :Except for the indentation error, you will get NameError after indentation is ok. In print() you are using upper K
for k in range(1,101,2): print(K)But it shows following error
Error:Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> for k in range(1,101,2): print(K) SyntaxError: expected an indented block