Introduction to Programming with Python Displaying text Dileepa






















- Slides: 22
Introduction to Programming with Python Displaying text Dileepa S. Rajapaksa| http: //www. windowsgeek. lk @dsrajapaksa Microsoft Virtual Academy
Displaying text Print Microsoft Virtual Academy
Text එකක Display කරනන භ වත කරනන Print statement එක print('Hickory Dock! The mouse ran up the clock') print("Hickory Dock! The mouse ran up the clock") ඔබට single quotes හ double quotes භ වත Microsoft Virtual Academy කලහ කය
Demo Printing text Microsoft Virtual Academy
Single quotes හ Double quotes භ වතය ප රශණයක තය නව ද ? print("It's a beautiful day in the neighborhood") print('It's a beautiful day in the neighborhood') • Display කරනන යන text එක Double quotes හ Single quotes එකක තබ නව නම ප රශණය මතව නව . • Double quotes හ Single quotes වලන Microsoft Virtual Academy වරගයක භ වත ම කරමට පරද එක ව න එක
ප ළ කහපයක Microsoft Virtual Academy Print කරම
ප ළ කහපයක කරනන ? Display කරමට print statements කහපයක භ වත කරනන print('Hickory Dock!') print('The mouse ran up the clock') Microsoft Virtual Academy ම කකද පළවන .
අලත ප ල ආරමභකරමට භ වත කරනන පළවන. "n " print('Hickory Dock!n. The mouse ran up the clock') Microsoft Virtual Academy
Python trick: triple quotes! print("""Hickory Dock! The mouse ran up the clock""") print('''Hickory Dock! The mouse ran up the clock''') String එකක triple quotes අතර type කල ත ඒ string එක ඒ type කරප වදහටම Print කරගනන පළවන. Microsoft Virtual Academy
Demo Printing text Microsoft Virtual Academy
ම යන වඩ හ ඳ ම කකද ? print('Hickory Dock!') print('The mouse ran up the clock') print('Hickory Dock!n. The mouse ran up the clock') print('''Hickory Dock! The mouse ran up the clock''')
Code එකක ව ඩ න කල ත Microsoft Virtual Academy
අපග අතව රද ව දගත. print(Hickory Dock) print('It's a small world') print("Hi there') prnit("Hello World!") හඳන ග නම print('Hickory Dock') print("It's a small world") print("Hi there") print("Hello World!")
ඔබට අභය ගයක පහත ද කව න … Poem එක ඒ ආක රය නම සඳහ program එකක ලයනන Display කරම . There once was a movie star icon who preferred to sleep with the light on. They learned how to code a device that sure glowed and lit up the night using Python!
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U. S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.