පුලුවන් කෙනෙක් ඉන්නව නම් විස්තර ඇතුව කියන්න
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
samanyayen docstring widiyata thama use karanna
__doc__ or help()
https://www.programiz.com/python-programming/docstrings
docsting kiyanne mokkd ayye
class or function ekakin wena de describe karanna
Python Docstrings | Python Best Practices
Documentation For Strings
Python වල multiple line එකක් string එකක් වගේ print කරන්න පාවිච්චි කරන්නෙ…
print(”’
Code
Hero”’)
එතකොට මේක single line එකක print වෙන්නෙ නැ
code
hero
ඔය විදිහට තමා print වෙන්නෙ🙂
Mama danne naha
Python වල Multiple Line Text එකක් string එකක් print කරද්දි ඕක පාවිච්චි වෙනවා.
උදා1:
print (“How
are
you”)
= How are you
උදා2:
print ( ”’ How
are
you”’ )
=How
are
you
දැක්කනෙ වෙනස, ඕකට Single Quotes 3ක්ම පාවිච්චි වෙන්න ඕනෙ කියල එකක් නෑ. Double Quotes 3ක් පාවිච්චි කරලත් ඕකම කරන්න පුලුවන් 🙂👍
ethkota methana mokkd wenne
CODE
print(‘comments’); ‘ ‘ ‘ comment ‘ ‘ ‘; a=900
OUTPUT
comments
‘ comment’
CODE
‘ ‘ ‘
print(100); print(200); print(300)
‘ ‘ ‘
OUTPUT
‘\nprint(100); print(200); print(300)\n’
මෙහෙම උනේ මෙතනදි ‘ ‘ ‘ පාවිච්චි වෙන්නේ මොකටද