You are not logged in. Please login at www.codechef.com to post your questions!

×

need help in python

 0 hiiii @itzmerahul ...happy to see a pythonic guy.... I literally code in Python only....(use C and C++ in very rare cases...kind of questions in which we need a static matrix or something similar to it...) . I think I approximately solved more than 200 problems with python only...(all belongs to beginner level and easy level...hahahha)...Initially on Codechef , many a times I also get that NZEC Error . but to get rid of that always read input using the strip() function . mostly it helps , For ex --- (Python3)  T=int(input().split())  or you can do this in my way also....first I import system then using it I read the input  from sys import stdin,stdout T=int(stdin.readline().strip())  After I start using strip() function , I dont remember when I got NZEC error last time... and a last advice from side , many people who do CP on really hard basis , they will always tell you leave Python , join C++ community....but it is not a very hard and fast rule that a person with Python can't do CP . It really depends upon your algorithms , how you treat the question... If you have any query regarding python , you can ask me anytime... HAPPY CODING ; answered 18 Feb, 22:40 1●1 accept rate: 0%
 toggle preview community wiki:
Preview

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×528

question asked: 13 Feb, 20:26

question was seen: 91 times

last updated: 18 Feb, 22:40