Python For Beginners
LET'S GET STARTED!
តោះចាប់ផ្តើម
Python has a print() function that prints a specific message to the screen. For example, typing in print("Hello") will display "Hello" on the screen.
Watch the video below to understand how to use the print() function.
Python មានមុខងារ print() ដែលបោះពុម្ពសារជាក់លាក់មួយទៅកាន់អេក្រង់។ ឧទាហរណ៍ ការវាយបញ្ចូលក្នុងការបោះពុម្ព ("ជំរាបសួរ") នឹងបង្ហាញ "ជំរាបសួរ" នៅលើអេក្រង់។ មើលវីដេអូខាងក្រោមដើម្បីយល់ពីរបៀបប្រើមុខងារ print()។
Now, let's try it ourselves! Type the print() function in PyCharm and put the message you want to display in quotation marks. When using numbers, do not use quotation marks.
ឥឡូវនេះយើងសាកល្បងវាដោយខ្លួនឯង! វាយមុខងារ print() នៅក្នុង PyCharm ហើយដាក់សារដែលអ្នកចង់បង្ហាញក្នុងសញ្ញាសម្រង់។ នៅពេលប្រើលេខ កុំប្រើសញ្ញាសម្រង់។
Examples to try ឧទាហរណ៍ដើម្បីសាកល្បង:
print("Hello World")
print("Orange")
print(3)
print(4+5)
Watch the video below to see how to code with Python
មើលវីដេអូខាងក្រោមដើម្បីមើលពីរបៀបសរសេរកូដជាមួយ Python
After you are done watching the video, click below to practice more!
បន្ទាប់ពីអ្នកមើលវីដេអូចប់ហើយ សូមចុចខាងក្រោមដើម្បីអនុវត្តបន្ថែមទៀត!