Introduction to Programming with Python

Slides:



Advertisements
Similar presentations
Follow the Leader Drawing Tool Practice Exercises.
Advertisements

Hickory Dickory Dock, The mouse ran up the clock, 2010 Cochlear Ltd & MREIC.
Hickory Dickory Dock A Nursery Rhyme.
Hickory Dickory Dock Use with Dr. Jean’s “Hickory Dickory Dock” on Sing to Learn with Dr. Jean CD.
Hickory, Dickory Dock.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
MODULE 1.3 VERILOG BASICS UNIT 1 : INTRODUCTION TO VERILOG TOPIC : System Tasks and Compiler directive.
Elements of Poetry Review.
Python. History of python  Python was conceived in the late 1980s and its implementation was started in December 1989 by Guido van Rossum at CWI in the.
Please log on The. AN INTRODUCTION TO ‘Python is a high-level, general purpose programming language’ Python is one of the many programming languages.
MLA Format Rebecca Castera September 2, 2008 Headings Every paper needs a heading. Without a heading, your paper is like a letter with no address! Every.
Digital Citizenship Poster. Opening/Objective: We will use Microsoft Word to create a Digital Citizenship Poster. Closing: I can use Microsoft Word to.
JAVA Practical Creating our first program 2. Source code file 3. Class file 4. Understanding the different parts of our program 5. Escape characters.
Hello Computer Science!. Below is an example of a Hello World program in JAVA. While it is only three lines of code, there are many things that are happening.
By Austin Laudenslager AN INTRODUCTION TO PYTHON.
8 January 2016Birkbeck College, U. London1 Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems
Debugging and Printing George Mason University. Today’s topics Review of Chapter 3: Printing and Debugging Go over examples and questions debugging in.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Introduction to Python Lesson 2a Print and Types.
Introduction to Programming using Python
Introduction to Programming
Using JMP® Visualization for A Bike-Sharing Program in NYC
Variables and Expressions
Hickory Dickory Dock A Nursery Rhyme.
Lesson 1 An Introduction
Design & Technology Grade 7 Python
Welcome to Poetry S56 Created by: Ms. Tanya.
Introduction to Programming
The mouse controls the movement of the pointer on your screen.
Imperative Programming
Introduction to Programming with Python
Microsoft Azure Fundamentals Microsoft Azure මූලික දැනුම
Introduction to Programming with Python
Introduction to Programming with Python
Introduction to Programming with Python
Introduction to Programming with Python
Displaying text print Susan Ibach | Technical Evangelist
Selection (IF Statements)
Limericks.
Introduction to Programming using Python
Microsoft Azure Fundamentals Microsoft Azure මූලික දැනුම
“If you can’t write it down in English, you can’t code it.”
Introduction to Programming Using Python PART 1
Hello World! Syntax.
Variables and Expressions
Windows.
Introduction to Programming with Python
Introduction to Programming with Python
CHAPTER 6: Control Flow Tools (for and while loops)
Introduction to Programming with Python
Introduction to Access 2010
Introduction to Programming with Python
Introduction to Programming with Python
Beginning Python Programming
Introduction to Computer Science
Lesson 02: Introduction to Python
Python Lessons 7 & 8 Mr. Kalmes.
Title Introduction: Discussion & Conclusion: Methods & Results:
Python Inputs Mr. Husch.
Do it now – PAGE 3 You will find your do it now task in your workbook – look for the start button! Thursday, 23 May 2019.
Python Lessons 7 & 8 Mr. Husch.
Python 8 Mr. Husch.
Computer Programming-1 CSC 111
Addition Facts Doubles.
Imperative Programming
GCSE Computing.
Topic: Is about… Introduction Fun facts, organizes paper FACTS
Strings String basics String formatting.
Data Types and Expressions
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Introduction to Programming with Python Displaying text Dileepa S. Rajapaksa| http://www.windowsgeek.lk @dsrajapaksa Microsoft Virtual Academy

Displaying text Print Microsoft Virtual Academy Last part Practice your language Microsoft Virtual Academy

මේ දේවල් වලට පරිගණකය භාවිතාකරලා තියෙනවාද? පොතක් කියවන්න. යම් නිෂ්පාදනයක් ගැන දැනගන්න. ප්‍රශ්ණයකට විසඳුමක් දැනගන්න පියවරයන් දැන ගැනීමට. Last part Practice your language Microsoft Virtual Academy

බොහෝ පරිගණක වැඩසටහන් තොරතුරු සපයනවා ඔබ දැනගතයුතු එක් සරල ඒ වගේම වැදගත් කරුණක්වන්නේ පරිගණක තිරය තුල Text එකක් Display කිරීම. No experience needed , if you have it is not a problem Microsoft Virtual Academy

Text එකක් Display කරන්න භාවිතාකරන්නේ Print statement එක print('Hickory Dickory Dock! The mouse ran up the clock') print("Hickory Dickory Dock! The mouse ran up the clock") ඔබට single quotes හෝ double quotes භාවිතා කලහැකියි No experience needed , if you have it is not a problem 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

පේළි කිහිපයක් Print කිරීම Microsoft Virtual Academy

පේළි කිහිපයක Display කිරීමට මොකක්ද කරන්නේ? print statements කිහිපයක් භාවිතාකරන්න පුළුවන්. print('Hickory Dickory Dock!') print('The mouse ran up the clock') Microsoft Virtual Academy

අලුත් පේලි ආරම්භකිරීමට "\n" භාවිතාකරන්න පුළුවන්. print('Hickory Dickory Dock!\nThe mouse ran up the clock') Microsoft Virtual Academy

Python trick: triple quotes! print("""Hickory Dickory Dock! The mouse ran up the clock""") print('''Hickory Dickory Dock! The mouse ran up the clock''') String එකක් triple quotes අතර type කලොත් ඒ string එක ඒ type කරපු විදිහටම Print කරගන්න පුළුවන්. Microsoft Virtual Academy

Demo Printing text Microsoft Virtual Academy

එකම ගැටලුවක් | විසඳුම් කිහිපයක් Microsoft Virtual Academy

මෙයින් වඩා හොඳ මොකක්ද? print('Hickory Dickory Dock!') print('The mouse ran up the clock') print('Hickory Dickory Dock!\nThe mouse ran up the clock') print('''Hickory Dickory Dock! The mouse ran up the clock''')

Geek Tips එකම ප්‍රශ්ණයට විසඳුම් කිහිපයක් පවතින්න පුළුවන්. එකම ප්‍රශ්ණයට විසඳුම් කිහිපයක් පවතින්න පුළුවන්. සමහර අවස්ථා වලදී ක්‍රමය එතරම්ම වැදගත් නැහැ.

Demo විකල්ප කිහිපයක් | එකම ප්‍රතිඵලයක් Microsoft Virtual Academy

Code එකක් වැඩ නොකලොත් Microsoft Virtual Academy

Programming වලදී තවත් එක් වැදගත් දෙයක් වැරදි සිදුවීම සාමාන්‍ය දෙයක් . හැම Programmer කෙනෙක්ම Type කිරීමේ අත්වැරදි හා Code කිරීමේ අත්වැරදිසිදුකරනවා.

අපගේ අත්වැරදි හඳුනාගැනීම වැදගත්. print(Hickory Dickory Dock) print('It's a small world') print("Hi there') prnit("Hello World!") print('Hickory Dickory Dock') print("It's a small world") print("Hi there") print("Hello World!")

ඔබට අභියෝගයක්… There once was a movie star icon පහත දැක්වෙන Poem එක ඒ ආකාරයෙන්ම Display කිරීම සඳහා program එකක් ලියන්න. 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!

Congratulations! දැන් ඔයාලට පුළුවන් තොරතුරු Display කරන්න පුළුවන් ආකාරයේ program එකක් හදන්න.