পাইথন (প্রোগ্রামিং ভাষা): সংশোধিত সংস্করণের মধ্যে পার্থক্য

বিষয়বস্তু বিয়োগ হয়েছে বিষয়বস্তু যোগ হয়েছে
Xqbot (আলোচনা | অবদান)
Bot: en:Python (programming language) is a good article
৭৮ নং লাইন:
== সিনট্যাক্স ও সেমানটিক্‌স ==
{{main|Python syntax and semantics}}
 
=== ইন্‌ডেন্‌টেশন ===
পাইথন কোডের একটি ব্লক বোঝাতে ব্রাকেট বা কীওয়ার্ডের পরিবর্তে হোয়াইটস্পেস ইন্‌ডেন্‌টেশন ব্যবহার করে। এই ব্যবস্থাটিকে অফ-সাইড রুল বলা হয়। কোন একটি ব্লক বোঝাতে ইন্‌ডেন্‌টেশন বেশি করা হয়। আবার চলতি ব্লক শেষ বোঝাতে কম ইন্‌ডেন্‌টেশন করা হয়।
 
=== স্টেটমেন্ট এবং কন্ট্রোল ফ্লো ===
 
<!--
Python was designed to be a highly readable language. It aims toward an uncluttered visual layout, uses English keywords frequently where other languages use punctuation, and has notably fewer syntactic constructions than many structured languages such as C, Perl, or Pascal. Python uses indentation, rather than [[curly bracket programming language|curly braces]], to delimit [[statement block]]s. An increase in indentation comes after certain statements; a decrease in indentation signifies the end of the current block. Python's statements include:
১৫৪ ⟶ ১৬০ নং লাইন:
[[Method (programming)|Method]]s on objects are [[function (programming)|function]]s attached to the object's class; the syntax <code>instance.method(argument)</code> is, for normal methods and functions, [[syntactic sugar]] for <code>Class.method(instance, argument)</code>. This is why Python methods must have an explicit <code>[[This (computer science)|self]]</code> parameter to access [[instance data]], in contrast to the implicit self in some other object-oriented programming languages (for example, [[Java (programming language)|Java]] or [[Ruby (programming language)|Ruby]]).<ref>{{ cite web | url = http://www.python.org/doc/faq/general/#why-must-self-be-used-explicitly-in-method-definitions-and-calls | title = Why must 'self' be used explicitly in method definitions and calls? | publisher = Python FAQ }}</ref>
-->
 
== অন্যান্য সুবিধাদি ==
[[চিত্র:IDLE Windows.png|thumb|200px|CPython's interactive mode, used via IDLE]]