`howdoi` হল একটি কমান্ড-লাইন টুল যা স্ট্যাকওভারফ্লো থেকে কোড স্নিপেট খুঁজে দেয়। পাইথনে ইন্সটল করে ব্যবহার করা যায়।
ইনস্টলেশন
pip install howdoi
উদাহরণসমূহ
১. পাইথন লিস্ট তৈরি
howdoi create a python list
আউটপুট
>>> l = [None] * 10 >>> l [None, None, None, None, None, None, None, None, None, None]
২. আজকের তারিখ প্রিন্ট
howdoi print today's date in python
আউটপুট
for date in mylist: print(str(date))
৩. ফিবোনাচি সিরিজ
howdoi create fibonacci series in python
আউটপুট
def F(n):
if n == 0: return 0
elif n == 1: return 1
else: return F(n-1)+F(n-2)
৪. জাভাস্ক্রিপ্ট ক্যালেন্ডার (অন্য ল্যাঙ্গুয়েজও সাপোর্ট করে)
howdoi use calendar in javascript
৫. ফানি কোয়েরি (howdoi হিউমরও বুঝে)
howdoi go to north pole
আউটপুট
I believe the difference is because GPS uses the geographical North/South Pole...
`howdoi` ডেভেলপারদের দ্রুত কোড স্নিপেট পাওয়ার জন্য খুব হেল্পফুল টুল।