Skip to main content

How the print () function works in Python programming language?

Now we will learn how Python's print () function works. Let's see how we can express ourselves through the Python programming language.

Every human being has a name, and this name is his identity. Likewise, every programming language has an identity, and that is an extension. Extensions allow us to recognize or understand which programming language. So we will first create a Python file. And the extension of the file must be saved with (.py).


Now looking at the extension of this file, we understand that this is a file of Python programming language. Now we will open this Python file with any editor.

The print () function is used to view the output of something in the Python programming language. First, we will write the print function. We can display any text using this print () function. And we can see what our program is outputting.


Now we will put a double quotation ("") inside this print () function. And whatever we write inside this double quotation will show as output. We will now write our names inside this double quotation. And let's run the Python program to see what writing our names actually looks like.


After running the Python program, we saw that our name was printed very nicely. We got a rough idea of how the print () function works in the Python programming language.


There are some more parameters inside the print () function that allow us to see our output in different ways. And we've created a video tutorial on how these parameters work or how to use them. With this video tutorial, you can easily understand how the parameters of the print () function work.

Comments

Popular posts from this blog

পাইথন প্রোগ্রামিং ল্যাংগুয়েজে print() ফাংশন কিভাবে কাজ করে?

এখন আমরা শিখবো কিভাবে পাইথনের print() ফাংশনটি কিভাবে কাজ করে। পাইথন প্রোগ্রামিং ল্যাংগুয়েজ এর মাদ্ধমে কিভাবে আমরা আমাদের মনের ভাব প্রকাশ করতে পারি সেইটা দেখবো। আমাদের প্রতিটা মানুষেরই একটি নাম আছে, আর এই নামই হলো তার পরিচয়। ঠিক তেমনিই প্রতিটা প্রোগ্রামিং ল্যাংগুয়েজেরই একটি পরিচয় আছে, আর সেইটা হলো এক্সটেনশন। এক্সটেনশনের মাদ্ধমে আমরা চিনতে বা বুঝতে পারি কোন প্রোগ্রামিং লাঙ্গুয়েজটি। তাই আমরা প্রথমেই একটি পাইথন ফাইল তৈরী করে নিবো। এবং ফাইল এর এক্সটেনশন অবশ্যয় (.py) দিয়ে সেভ করতে হবে।  এখন এই ফাইলের এক্সটেনশন দেখে আমরা বুঝতে পারছি যে, এইটা পাইথন প্রোগ্রামিং ল্যাংগুয়েজ এর ফাইল। এখন আমরা এই পাইথনের ফাইলটি যেকোনো এডিটর দিয়ে ওপেন করবো। পাইথন প্রোগ্রামিং ল্যাংগুয়েজে কোনো কিছুর আউটপুট দেখতে হলে প্রিন্ট() ফাংশনটি ব্যবহার করা হয়। প্রথমেই আমরা প্রিন্ট ফাংশনটি লিখবো। এই প্রিন্ট() ফাংশনের মাদ্ধমেই আমরা যেকোনো লিখা প্রদর্শন করতে পারি। এবং দেখতে পারি আমাদের প্রোগ্রামটি কি আউটপুট দিচ্ছে।  এখন আমরা এই প্রিন্ট() ফাংশনের ভেতর ডাবল কোটেশন (" ") দিবো। এবং এই ডাবল কোটেশনের ভেতর আমরা যা কিছুই লিখি না

Version of Python Programming Language

Before we can start Python programming, we must choose which version of Python we want to program with. We need to work on a version that makes it easier for us to work with Python in the future. And much faster we can develop our software. There are a total of three versions of the Python programming language: Python 1 Python 2 Python 3 Python 1: When Python programming was first released, the version of Python was 0.9.0 (February 1991). At this stage, the Python programming language had classes, inheritance, exception handling, functions, lists, dictionaries, strings. And after many updates, the Python programming language was released in January 1994 with version 1.0. The main new features included in this release are functional programming tools lambda, maps, filters. This is where the journey of Python 1 begins. The last version was Python 1.2 in 1995 when Van Ross was at CWI. Van Rossam continued Python's work at the Corporation for National Research Initiatives (CNRI) in Res