# পাইথনিকনেস

একজন ভালো পাইথন প্রোগ্রামার হতে হলে একটা জিনিষ মাথায় রাখা উচিৎ। আর তা হচ্ছে - যেকোনো প্রোগ্রাম তৈরির সময় খেয়াল রাখতে হবে যে, ওই প্রোগ্রাম তৈরির সময় সেটাকে দিয়ে যে কাজ করিয়ে নেয়ার প্ল্যান ছিল, সেই প্রোগ্রাম যেন ঠিক ঠাক ভাবে ঠিক ওই কাজটি-ই করে। আরও, খেয়াল রাখতে হয় কোড লেখার সময় যেন কোড গুলো ক্লিন হয় এবং যেকোনো মানুষের দারা বুঝতে সুবিধা হয়। এমনকি নিজের লেখা কোডও অনেক সময় কিছুদিন পর নিজেই পড়ে বোঝা যায় না। সেরকম যাতে না হয় তাই, কোড লেখার সময় শত ব্যস্ততার মধ্যেও একটু গুছিয়ে এবং পরিষ্কারভাবেই লেখা উচিৎ। এতে করে পরে এর সুবিধা পাওয়া যাবেই।

তো, এরকম অনেক গুলো নিয়ম বা দর্শন আছে যেগুলো ফলো করলে ভালো একজন পাইথন প্রোগ্রামার হবার পথে আসলেই উপকার পাওয়া যাবে। একে বলে Zen of Python. এর আওতাভুক্ত সেই সুন্দর নিয়ম বা টিপ্স গুলো খুব সহজেই দেখা যাবে যখন তখন। এর জন্য পাইথন কনসোল রান করে নিচের একটিমাত্র স্টেটমেন্ট এক্সিকিউট করলেই হবে -

```python
import this
```

উপড়ের স্টেটমেন্টটি লিখে এন্টার চাপলেই স্ক্রিনে নিচের মত আউটপুট আসবে -

```python
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
```

আশা করা যায় প্রত্যেকটি লাইন পড়ে বোঝা যাবে তা দিয়ে প্রোগ্রামিং এর কন্টেক্সট থেকে কি বোঝানো হয়েছে।

> মজার বিষয় হচ্ছে, Zen of Python এ ২০ টি প্রিন্সিপাল এর উল্লেখ আছে কিন্তু এখানে আউটপুট আসে ১৯ লাইনের। ২০তম লাইনকে উহ্য রাখা হয়েছে। কেউ বলে থাকেন এটা যার যার নিজের মতকে গুরুত্ব দেয়ার জন্য, আবার কেউ বলে থাকেন হোয়াইট স্পেস ব্যবহারের কথাটাই এভাবে উপমা দিয়ে বোঝানো হয়েছে :)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://python.howtocode.dev/faq/pythonic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
