This is the slide presenting about how to use Python programming language to create an desktop application at a very basic level.
Target: Non-IT background people who interested in programming.
Kotlin is a statically typed programming language that runs on the Java Virtual Machine and can compile to JavaScript. It was created by JetBrains to improve on Java and be safer than dynamically typed languages. Kotlin code can be written for Android apps, web applications, JVM applications, and native applications. It aims to interoperate well with Java libraries and has many features to improve code safety, brevity and readability compared to Java.
Final requirement for programming-Bonifacio, Mary Clemenceclemencebonifacio
The document discusses programming concepts like switch case statements and looping. It provides examples of switch case statements that output the day of the week or perform calculations based on a number input. It also gives examples of different loop types like for, while, and do while loops that count or repeat outputs a specified number of times. The document is a report submitted to a professor that describes programming concepts and includes sample codes and their outputs to demonstrate switch cases and looping.
This document provides an overview of the syllabus and assignments for an introductory Python programming course. The syllabus covers variables and types, functions, control flow, objects, modules, data structures, and two programming projects. Assignments include reading the textbook, writing simple print programs, installing Python, using the interpreter, and exercises on variables and basic operators.
LESSON 4: INTRODUCING FUNCTIONS AND MODULAR DESIGN
Learn about Functions in Python. Advantages and disadvantages of functions. Introduction to Modular design. Local and Global Variables and their use. Passing parameters. What are arguments? Big questions: Evolution vs Intelligent design in light of functions (and modular design). A closer look at Robotics and advances in this field. Challenges and tasks including with solutions. Suggested research/HW and YouTube video recommendations. A note on Python’s built in functions.
This document provides coding challenges related to switch statements in Java. It includes:
1. Three coding challenges - to identify, apply, and reorder/expand switch statements in code.
2. An explanation of switch statements and how they can simplify decision-making compared to if statements.
3. An example of a switch statement written in Java that takes an integer representing a month and prints the corresponding month string. Learners are challenged to complete this code by adding the remaining months.
4. Another coding challenge where learners must correct errors in code for a rock-paper-scissors game to make it run properly. An extension challenge is provided to allow computer gameplay against a human.
Error correction techniques involve syntax, logic, and runtime errors. Syntax errors do not follow language rules and can be found through careful checking. Logic errors result in unexpected output and are detected through desk checking algorithms with test data. Runtime errors cause crashes and are difficult to locate, found through testing with different data. Stubs and flags are used during debugging to check connections between modules and determine if sections of code have been processed.
Kotlin is a statically typed programming language that runs on the Java Virtual Machine and can compile to JavaScript. It was created by JetBrains to improve on Java and be safer than dynamically typed languages. Kotlin code can be written for Android apps, web applications, JVM applications, and native applications. It aims to interoperate well with Java libraries and has many features to improve code safety, brevity and readability compared to Java.
Final requirement for programming-Bonifacio, Mary Clemenceclemencebonifacio
The document discusses programming concepts like switch case statements and looping. It provides examples of switch case statements that output the day of the week or perform calculations based on a number input. It also gives examples of different loop types like for, while, and do while loops that count or repeat outputs a specified number of times. The document is a report submitted to a professor that describes programming concepts and includes sample codes and their outputs to demonstrate switch cases and looping.
This document provides an overview of the syllabus and assignments for an introductory Python programming course. The syllabus covers variables and types, functions, control flow, objects, modules, data structures, and two programming projects. Assignments include reading the textbook, writing simple print programs, installing Python, using the interpreter, and exercises on variables and basic operators.
LESSON 4: INTRODUCING FUNCTIONS AND MODULAR DESIGN
Learn about Functions in Python. Advantages and disadvantages of functions. Introduction to Modular design. Local and Global Variables and their use. Passing parameters. What are arguments? Big questions: Evolution vs Intelligent design in light of functions (and modular design). A closer look at Robotics and advances in this field. Challenges and tasks including with solutions. Suggested research/HW and YouTube video recommendations. A note on Python’s built in functions.
This document provides coding challenges related to switch statements in Java. It includes:
1. Three coding challenges - to identify, apply, and reorder/expand switch statements in code.
2. An explanation of switch statements and how they can simplify decision-making compared to if statements.
3. An example of a switch statement written in Java that takes an integer representing a month and prints the corresponding month string. Learners are challenged to complete this code by adding the remaining months.
4. Another coding challenge where learners must correct errors in code for a rock-paper-scissors game to make it run properly. An extension challenge is provided to allow computer gameplay against a human.
Error correction techniques involve syntax, logic, and runtime errors. Syntax errors do not follow language rules and can be found through careful checking. Logic errors result in unexpected output and are detected through desk checking algorithms with test data. Runtime errors cause crashes and are difficult to locate, found through testing with different data. Stubs and flags are used during debugging to check connections between modules and determine if sections of code have been processed.
Workshop slides which give an overview of python programming. The slides are accompanied by DIY (do it yourself) programs which can be found as in GitHub (https://github.com/bhalajin/blueprints)
This document provides an overview of for loops in Python programming. It discusses the anatomy of a for loop, using ranges to repeat code a set number of times, nested loops, the break statement, and examples of for loops in games and quizzes. It also provides background on the creator of Python programming language, Guido van Rossum, and discusses theories about the digital nature of the universe. Useful videos and additional reading links are included at the end.
LESSON 2. CONDITIONAL LOGIC, IF ELSE STATEMENTS, SELECTION, DEBUGGING
Introduction to, with examples, conditional logic and the use of IF and ELSE statements. Look at SELECTION in game design. Learn about Debugging and Error Checking. Analyse the use of a flow chart and how to design before implementation. Discuss: Video gaming addiction! Create a password checker and a username and password (login) app. Learn about the use of ELIF. Learn about Boolean variables and their use. Learn about Multiple comparisons using and/or. Includes a suggested videos, ‘Big ideas’ discussion, and HW/research projects section. Discussion on Artificial Intelligence and Robotics.
This document provides an introduction to the Python programming language. It is divided into four sections: Getting Started, Data Types, Control Flow, and Additional Exercises. The Getting Started section covers downloading Python, writing "Hello World" programs, and performing basic arithmetic operations. The Data Types section explains strings, numbers, booleans, variables, and arrays. The Control Flow section previews selection, iteration, and procedures. The Additional Exercises section provides straightforward, challenging, and file handling exercises for readers.
LESSON 3B. FOCUS: FOR LOOPS, NESTED LOOPS, TASKS AND CHALLENGES.
Introduction to, with examples, For loops. Challenges and tasks included with solutions (predict the output). Compare ‘while’ and ‘for’ loops. Use the break statement and explore how it works in different scenarios. Learn about Nested Loops. Learn about the need for initialisation (set starting value). Create your own for loops. Create the beginnings of an arithmetic quiz using a random function and for loops. Big ideas discussion: Is the universe digital. A program? Introducing Gottfried Leibniz and Konrad Zuse. Includes a suggested videos, ‘Big ideas’ discussion, and HW/research projects section.
This document provides an overview of Python basics training. It covers installing Python, running Python code through various methods like the command line, IDLE, and Jupyter notebooks. It also discusses Python syntax, variables, data types, operators, conditional statements, and loops. Key Python data types include integers, floats, strings, lists, and dictionaries. The document is intended as an introduction to Python for beginners.
This document provides an introduction to programming and the programming process. It explains that a program is a sequence of instructions that a computer follows to perform tasks. Programming is the process of writing programs. The key steps in the programming process are: (1) defining and analyzing the problem; (2) developing a logical solution using an algorithm; (3) writing the program by translating the algorithm into code; (4) testing and debugging the program; and (5) running the program on a computer. The document uses a simple example of calculating student marks averages to illustrate defining inputs and outputs, developing a processing logic, and writing a first program. It also briefly introduces programming concepts like variables, data types, and variable naming.
Here are the programs for the assignments:
1.
name = "John"
print(name)
2.
x = 5
y = 10
z = 15
print(x, y, z)
3.
mood = "happy"
strength = 80.5
rank = 1
The document provides information about a course on Object Oriented Programming concepts in Python. It outlines 6 course outcomes related to illustrating Python basics, developing scripts using control statements and data types, constructing object oriented programs using functions, and applying concepts like inheritance, polymorphism, and exception handling. It also mentions the syllabus, books and references, and provides introductory information about Python including its history, uses, installation process, interpreted nature, and basic programming concepts.
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON Nandakumar P
Unit 1 : INTRODUCTION TO PROBLEM SOLVING, EXPRESSION AND DATA TYPES
Fundamentals: what is computer science - Computer Algorithms - Computer Hardware - Computer software - Computational problem solving using the Python programming language - Overview of Python, Environmental Setup, First program in Python, Python I/O Statement. Expressions and Data Types: Literals, Identifiers and Variables, Operators, Expressions. Data types, Numbers, Type Conversion, Random Number.
Problem solving: Restaurant Tab calculation and Age in seconds.
This document provides an introduction to the Small Basic programming language environment and teaches the basics of programming through examples. It discusses that Small Basic was created to make programming easy for beginners. It then describes the Small Basic programming environment and walks through a first "Hello World" program. It explains how the program works by breaking it down into statements and objects. The document introduces variables by having a program ask the user's name and store it in a variable to personalize the output. It teaches how variables allow storing values that can be reused and changed in a program.
Python is one of the powerful, high-level, easy to learn programming language that
provides a huge number of applications. Some of its features, such as being object-oriented
and open source, having numerous IDE’s, etc. make it one of the most in-demand
programming languages of the present IT industry.
According to TIOBE index, as of January 2020, Python is one of the popular programming
languages. By looking at the popularity of this programming language, many IT
professionals, both beginners as well as experienced alike, are willing to build their career
as a Python developer
This document provides an introduction to the Small Basic programming language environment and teaches the basics of programming through examples. It discusses that Small Basic was created to make programming easy for beginners. It then describes the Small Basic programming environment user interface and walks through a first "Hello World" program. It explains how the program works by breaking it down into statements and objects. The document continues by having the reader modify the program to print in yellow and introduces the concept of variables by having the user input their name and printing it back.
This document discusses training on Python that was conducted over six weeks by Cetpa Infotech Pvt. Ltd. It covers topics like what Python is, the differences between programs and scripting languages, Python's history and uses. It also discusses installing Python IDEs and provides examples of Python code, variables, data types, strings, lists, tuples, and control flow statements. The conclusion is that Python is a good teaching language due to being free, easy to install, and flexible for both procedural and object-oriented programming.
If you're referring to acquisitions made by companies prior to the implementation of the Goods and Services Tax (GST), here are some acquisitions that occurred before GST was introduced:
Facebook (Meta Platforms, Inc.):
Instagram (Acquired in 2012)
WhatsApp (Acquired in 2014)
Oculus VR (Acquired in 2014)
Alphabet Inc. (Google):
YouTube (Acquired in 2006)
DoubleClick (Acquired in 2008)
Nest Labs (Acquired in 2014)
Amazon:
Zappos (Acquired in 2009)
Twitch (Acquired in 2014)
Microsoft Corporation:
LinkedIn (Acquired in 2016)
Skype (Acquired in 2011)
Apple Inc.:
Beats Electronics (Acquired in 2014)
Shazam (Acquisition announced in 2017, completed in 2018)
Oracle Corporation:
Sun Microsystems (Acquired in 2010)
Siebel Systems (Acquired in 2006)
IBM (International Business Machines Corporation):
Cognos (Acquired in 2007)
SPSS (Acquired in 2009)
Salesforce:
Tableau Software (Acquired in 2019)
MuleSoft (Acquired in 2018)
Cisco Systems:
WebEx (Acquired in 2007)
Meraki (Acquired in 2012)
Intel Corporation:
McAfee (Acquired in 2011)
Altera Corporation (Acquired in 2015)
These are just a few examples of acquisitions made by companies prior to the implementation of GST. These acquisitions have played significant roles in shaping the strategies and offerings of these tech giants.
If you're referring to acquisitions made by companies prior to the implementation of the Goods and Services Tax (GST), here are some acquisitions that occurred before GST was introduced:
Facebook (Meta Platforms, Inc.):
Instagram (Acquired in 2012)
WhatsApp (Acquired in 2014)
Oculus VR (Acquired in 2014)
Alphabet Inc. (Google):
YouTube (Acquired in 2006)
DoubleClick (Acquired in 2008)
Nest Labs (Acquired in 2014)
Amazon:
Zappos (Acquired in 2009)
Twitch (Acquired in 2014)
Microsoft Corporation:
LinkedIn (Acquired in 2016)
Skype (Acquired in 2011)
Apple Inc.:
Beats Electronics (Acquired in 2014)
Shazam (Acquisition announced in 2017, completed in 2018)
Oracle Corporation:
Sun Microsystems (Acquired in 2010)
Siebel Systems (Acquired in 2006)
IBM (International Business Machines Corporation):
Cognos (Acquired in 2007)
SPSS (Acquired in 2009)
Salesforce:
Tableau Software (Acquired in 2019)
MuleSoft (Acquired in 2018)
Cisco Systems:
WebEx (Acquired in 2007)
Meraki (Acquired in 2012)
Intel Corporation:
McAfee (Acquired in 2011)
Altera Corporation (Acquired in 2015)
These are just a few examples of acquisitions made by companies prior to the implementation of GST. These acquisitions have played significant roles in shaping the strategies and offerings of these tech giants.
If you're referring to acquisitions made by companies prior to the implementation of the Goods and Services Tax (GST), here are some acquisitions that occurred before GST was introduced:
Facebook (Meta Platforms, Inc.):
Instagram (Acquired in 2012)
WhatsApp (Acquired in 2014)
Oculus VR (Acquired in 2014)
Alphabet Inc. (Google):
YouTube (Acquired in 2006)
DoubleClick (Acquired in 2008)
Nest Labs (Acquired in 2014
Computer programs contain instructions that tell computers what to do. Programs are written using programming languages as computers only understand machine code. There are different types of programming languages including machine language, assembly language, and high-level languages. High-level languages are easier for humans to read but must be compiled into machine code for computers to execute. Programming involves defining a problem, describing inputs and outputs, developing an algorithmic solution, and testing the program.
Python Programming - III. Controlling the FlowRanel Padon
This document discusses controlling program flow in Python programming. It covers sequence, selection, and repetition control structures including if/else statements, while loops, for loops, and nested control structures. Examples of pseudocode and Python code are provided to illustrate different control structures. The document also discusses logical operators, augmented assignment operators, and practice exercises for readers to test their understanding of controlling program flow.
This document is the first lesson of a C++ tutorial, providing an introduction to setting up a C++ compiler and environment, the basic structure of a C++ program, and some key elements like comments, headers, namespaces, functions, and input/output. It includes a simple "Hello World" program as an example to demonstrate these concepts. The tutorial is intended for both beginners and experienced programmers looking to learn or expand their skills in C++.
Workshop slides which give an overview of python programming. The slides are accompanied by DIY (do it yourself) programs which can be found as in GitHub (https://github.com/bhalajin/blueprints)
This document provides an overview of for loops in Python programming. It discusses the anatomy of a for loop, using ranges to repeat code a set number of times, nested loops, the break statement, and examples of for loops in games and quizzes. It also provides background on the creator of Python programming language, Guido van Rossum, and discusses theories about the digital nature of the universe. Useful videos and additional reading links are included at the end.
LESSON 2. CONDITIONAL LOGIC, IF ELSE STATEMENTS, SELECTION, DEBUGGING
Introduction to, with examples, conditional logic and the use of IF and ELSE statements. Look at SELECTION in game design. Learn about Debugging and Error Checking. Analyse the use of a flow chart and how to design before implementation. Discuss: Video gaming addiction! Create a password checker and a username and password (login) app. Learn about the use of ELIF. Learn about Boolean variables and their use. Learn about Multiple comparisons using and/or. Includes a suggested videos, ‘Big ideas’ discussion, and HW/research projects section. Discussion on Artificial Intelligence and Robotics.
This document provides an introduction to the Python programming language. It is divided into four sections: Getting Started, Data Types, Control Flow, and Additional Exercises. The Getting Started section covers downloading Python, writing "Hello World" programs, and performing basic arithmetic operations. The Data Types section explains strings, numbers, booleans, variables, and arrays. The Control Flow section previews selection, iteration, and procedures. The Additional Exercises section provides straightforward, challenging, and file handling exercises for readers.
LESSON 3B. FOCUS: FOR LOOPS, NESTED LOOPS, TASKS AND CHALLENGES.
Introduction to, with examples, For loops. Challenges and tasks included with solutions (predict the output). Compare ‘while’ and ‘for’ loops. Use the break statement and explore how it works in different scenarios. Learn about Nested Loops. Learn about the need for initialisation (set starting value). Create your own for loops. Create the beginnings of an arithmetic quiz using a random function and for loops. Big ideas discussion: Is the universe digital. A program? Introducing Gottfried Leibniz and Konrad Zuse. Includes a suggested videos, ‘Big ideas’ discussion, and HW/research projects section.
This document provides an overview of Python basics training. It covers installing Python, running Python code through various methods like the command line, IDLE, and Jupyter notebooks. It also discusses Python syntax, variables, data types, operators, conditional statements, and loops. Key Python data types include integers, floats, strings, lists, and dictionaries. The document is intended as an introduction to Python for beginners.
This document provides an introduction to programming and the programming process. It explains that a program is a sequence of instructions that a computer follows to perform tasks. Programming is the process of writing programs. The key steps in the programming process are: (1) defining and analyzing the problem; (2) developing a logical solution using an algorithm; (3) writing the program by translating the algorithm into code; (4) testing and debugging the program; and (5) running the program on a computer. The document uses a simple example of calculating student marks averages to illustrate defining inputs and outputs, developing a processing logic, and writing a first program. It also briefly introduces programming concepts like variables, data types, and variable naming.
Here are the programs for the assignments:
1.
name = "John"
print(name)
2.
x = 5
y = 10
z = 15
print(x, y, z)
3.
mood = "happy"
strength = 80.5
rank = 1
The document provides information about a course on Object Oriented Programming concepts in Python. It outlines 6 course outcomes related to illustrating Python basics, developing scripts using control statements and data types, constructing object oriented programs using functions, and applying concepts like inheritance, polymorphism, and exception handling. It also mentions the syllabus, books and references, and provides introductory information about Python including its history, uses, installation process, interpreted nature, and basic programming concepts.
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON Nandakumar P
Unit 1 : INTRODUCTION TO PROBLEM SOLVING, EXPRESSION AND DATA TYPES
Fundamentals: what is computer science - Computer Algorithms - Computer Hardware - Computer software - Computational problem solving using the Python programming language - Overview of Python, Environmental Setup, First program in Python, Python I/O Statement. Expressions and Data Types: Literals, Identifiers and Variables, Operators, Expressions. Data types, Numbers, Type Conversion, Random Number.
Problem solving: Restaurant Tab calculation and Age in seconds.
This document provides an introduction to the Small Basic programming language environment and teaches the basics of programming through examples. It discusses that Small Basic was created to make programming easy for beginners. It then describes the Small Basic programming environment and walks through a first "Hello World" program. It explains how the program works by breaking it down into statements and objects. The document introduces variables by having a program ask the user's name and store it in a variable to personalize the output. It teaches how variables allow storing values that can be reused and changed in a program.
Python is one of the powerful, high-level, easy to learn programming language that
provides a huge number of applications. Some of its features, such as being object-oriented
and open source, having numerous IDE’s, etc. make it one of the most in-demand
programming languages of the present IT industry.
According to TIOBE index, as of January 2020, Python is one of the popular programming
languages. By looking at the popularity of this programming language, many IT
professionals, both beginners as well as experienced alike, are willing to build their career
as a Python developer
This document provides an introduction to the Small Basic programming language environment and teaches the basics of programming through examples. It discusses that Small Basic was created to make programming easy for beginners. It then describes the Small Basic programming environment user interface and walks through a first "Hello World" program. It explains how the program works by breaking it down into statements and objects. The document continues by having the reader modify the program to print in yellow and introduces the concept of variables by having the user input their name and printing it back.
This document discusses training on Python that was conducted over six weeks by Cetpa Infotech Pvt. Ltd. It covers topics like what Python is, the differences between programs and scripting languages, Python's history and uses. It also discusses installing Python IDEs and provides examples of Python code, variables, data types, strings, lists, tuples, and control flow statements. The conclusion is that Python is a good teaching language due to being free, easy to install, and flexible for both procedural and object-oriented programming.
If you're referring to acquisitions made by companies prior to the implementation of the Goods and Services Tax (GST), here are some acquisitions that occurred before GST was introduced:
Facebook (Meta Platforms, Inc.):
Instagram (Acquired in 2012)
WhatsApp (Acquired in 2014)
Oculus VR (Acquired in 2014)
Alphabet Inc. (Google):
YouTube (Acquired in 2006)
DoubleClick (Acquired in 2008)
Nest Labs (Acquired in 2014)
Amazon:
Zappos (Acquired in 2009)
Twitch (Acquired in 2014)
Microsoft Corporation:
LinkedIn (Acquired in 2016)
Skype (Acquired in 2011)
Apple Inc.:
Beats Electronics (Acquired in 2014)
Shazam (Acquisition announced in 2017, completed in 2018)
Oracle Corporation:
Sun Microsystems (Acquired in 2010)
Siebel Systems (Acquired in 2006)
IBM (International Business Machines Corporation):
Cognos (Acquired in 2007)
SPSS (Acquired in 2009)
Salesforce:
Tableau Software (Acquired in 2019)
MuleSoft (Acquired in 2018)
Cisco Systems:
WebEx (Acquired in 2007)
Meraki (Acquired in 2012)
Intel Corporation:
McAfee (Acquired in 2011)
Altera Corporation (Acquired in 2015)
These are just a few examples of acquisitions made by companies prior to the implementation of GST. These acquisitions have played significant roles in shaping the strategies and offerings of these tech giants.
If you're referring to acquisitions made by companies prior to the implementation of the Goods and Services Tax (GST), here are some acquisitions that occurred before GST was introduced:
Facebook (Meta Platforms, Inc.):
Instagram (Acquired in 2012)
WhatsApp (Acquired in 2014)
Oculus VR (Acquired in 2014)
Alphabet Inc. (Google):
YouTube (Acquired in 2006)
DoubleClick (Acquired in 2008)
Nest Labs (Acquired in 2014)
Amazon:
Zappos (Acquired in 2009)
Twitch (Acquired in 2014)
Microsoft Corporation:
LinkedIn (Acquired in 2016)
Skype (Acquired in 2011)
Apple Inc.:
Beats Electronics (Acquired in 2014)
Shazam (Acquisition announced in 2017, completed in 2018)
Oracle Corporation:
Sun Microsystems (Acquired in 2010)
Siebel Systems (Acquired in 2006)
IBM (International Business Machines Corporation):
Cognos (Acquired in 2007)
SPSS (Acquired in 2009)
Salesforce:
Tableau Software (Acquired in 2019)
MuleSoft (Acquired in 2018)
Cisco Systems:
WebEx (Acquired in 2007)
Meraki (Acquired in 2012)
Intel Corporation:
McAfee (Acquired in 2011)
Altera Corporation (Acquired in 2015)
These are just a few examples of acquisitions made by companies prior to the implementation of GST. These acquisitions have played significant roles in shaping the strategies and offerings of these tech giants.
If you're referring to acquisitions made by companies prior to the implementation of the Goods and Services Tax (GST), here are some acquisitions that occurred before GST was introduced:
Facebook (Meta Platforms, Inc.):
Instagram (Acquired in 2012)
WhatsApp (Acquired in 2014)
Oculus VR (Acquired in 2014)
Alphabet Inc. (Google):
YouTube (Acquired in 2006)
DoubleClick (Acquired in 2008)
Nest Labs (Acquired in 2014
Computer programs contain instructions that tell computers what to do. Programs are written using programming languages as computers only understand machine code. There are different types of programming languages including machine language, assembly language, and high-level languages. High-level languages are easier for humans to read but must be compiled into machine code for computers to execute. Programming involves defining a problem, describing inputs and outputs, developing an algorithmic solution, and testing the program.
Python Programming - III. Controlling the FlowRanel Padon
This document discusses controlling program flow in Python programming. It covers sequence, selection, and repetition control structures including if/else statements, while loops, for loops, and nested control structures. Examples of pseudocode and Python code are provided to illustrate different control structures. The document also discusses logical operators, augmented assignment operators, and practice exercises for readers to test their understanding of controlling program flow.
This document is the first lesson of a C++ tutorial, providing an introduction to setting up a C++ compiler and environment, the basic structure of a C++ program, and some key elements like comments, headers, namespaces, functions, and input/output. It includes a simple "Hello World" program as an example to demonstrate these concepts. The tutorial is intended for both beginners and experienced programmers looking to learn or expand their skills in C++.
Transform Your Communication with Cloud-Based IVR SolutionsTheSMSPoint
Discover the power of Cloud-Based IVR Solutions to streamline communication processes. Embrace scalability and cost-efficiency while enhancing customer experiences with features like automated call routing and voice recognition. Accessible from anywhere, these solutions integrate seamlessly with existing systems, providing real-time analytics for continuous improvement. Revolutionize your communication strategy today with Cloud-Based IVR Solutions. Learn more at: https://thesmspoint.com/channel/cloud-telephony
SOCRadar's Aviation Industry Q1 Incident Report is out now!
The aviation industry has always been a prime target for cybercriminals due to its critical infrastructure and high stakes. In the first quarter of 2024, the sector faced an alarming surge in cybersecurity threats, revealing its vulnerabilities and the relentless sophistication of cyber attackers.
SOCRadar’s Aviation Industry, Quarterly Incident Report, provides an in-depth analysis of these threats, detected and examined through our extensive monitoring of hacker forums, Telegram channels, and dark web platforms.
Everything You Need to Know About X-Sign: The eSign Functionality of XfilesPr...XfilesPro
Wondering how X-Sign gained popularity in a quick time span? This eSign functionality of XfilesPro DocuPrime has many advancements to offer for Salesforce users. Explore them now!
Most important New features of Oracle 23c for DBAs and Developers. You can get more idea from my youtube channel video from https://youtu.be/XvL5WtaC20A
UI5con 2024 - Boost Your Development Experience with UI5 Tooling ExtensionsPeter Muessig
The UI5 tooling is the development and build tooling of UI5. It is built in a modular and extensible way so that it can be easily extended by your needs. This session will showcase various tooling extensions which can boost your development experience by far so that you can really work offline, transpile your code in your project to use even newer versions of EcmaScript (than 2022 which is supported right now by the UI5 tooling), consume any npm package of your choice in your project, using different kind of proxies, and even stitching UI5 projects during development together to mimic your target environment.
Mobile App Development Company In Noida | Drona InfotechDrona Infotech
Drona Infotech is a premier mobile app development company in Noida, providing cutting-edge solutions for businesses.
Visit Us For : https://www.dronainfotech.com/mobile-application-development/
8 Best Automated Android App Testing Tool and Framework in 2024.pdfkalichargn70th171
Regarding mobile operating systems, two major players dominate our thoughts: Android and iPhone. With Android leading the market, software development companies are focused on delivering apps compatible with this OS. Ensuring an app's functionality across various Android devices, OS versions, and hardware specifications is critical, making Android app testing essential.
3. About me
● My name: Nguyễn Đăng Bảo Long
● Current study: University of Engineering
and Technology - VNU
● Main subject: Cloud Computing,
Networking, Information Technology
● Email: baolong.a1yh@gmail.com
4. Get to know each other
● What do you do?
● How many of you have heard about
programming?
● Have done some programming?
Please share it
5. This course rule
1. Use the Google search as much as possible
2. Please ask me as much as possible (feel free to interrupt me if needed)
3. Repeat what I do as much as you can
4. You are allowed to use mobile phone, but use it wisely
7. Course objective
After this course, you will be able to:
● Write your own applications
● Create a simple game from scratch
● Go on studying deeper in Python
8. Desktop app vs. Mobile app
There were about 30
million lines of code in the
Mac version of Microsoft
Office (the whole suite) in
2006.
9. Let’s see how many kind of desktop app do you know
You will have 2 minutes to write down all kind of
desktop app you know.
Let’s see who get the most number.
11. Phase 1: Idea
● An idea is given by a customer or a
leader of a team
● There will be a draft where the app’s
UI is sketched, the app’s functions is
noted
12. Phase 2: Analysis & Design
● After all the requirements have been
clarified, the devs are gonna choose
which technology will be used.
● Then the dev team will focus on
designing the:
○ UI
○ Components in the App (Login part, Paying
part,...)
○ Back-end server, system
○ ...
13. Phase 3: Develop & Test
● At this phase, the dev team is actually
do the coding, building the app part by
part.
● Each part can be accomplished by a
small team.
● There are some peoples, called
“testers”, coming in to find any error in
the app.
● The dev team then try to fix those
errors, or “debug”
14. Phase 4: Deploy
● Bring up the app to the marketplace,
where the user can use it
● At this stage, app will need to be
advertised by the marketing team, in
order to make it popular
15. Phase 5: Maintenance & Update
● After releasing, app shouldn’t be neglected.
● The team should continuously update it,
improve it, keep making new functions.
16. What are we going to do in this course?
● We involve in the developing part
● Assume that all the ideas, requirements is exists, we just jump right in
building it.
20. Why are we using it?
● Easy to learn
● Convenient to use
● Short to write code
● But:
○ Be careful with its syntax, 1 whitespace character
can makes the difference
24. In this part:
1. Install the prerequisites
2. Basic structure of a program
3. The output
○ To screen/file
4. The input
○ Variable
○ Data type
○ Operator
5. Execute part of a program
○ Logic
○ Loop
○ List
○ Function and Module
26. About Python
● Python is an interpreter
○ It’s a program which converts each of your line code, one by one, to a language which the
computers can understand and execute it
27. Python version
There are 2 version:
● Python 2
● Python 3 (currently 3.8.1)
We will use Python 3, since it’s the latest
update
28. Python download and install (Windows)
● Go to the page https://www.python.org/downloads/windows/ and download
the latest version of Python 3
● Install it
● Set the environment variable for python (it already done by default)
● Check with cmd by typing python
29. Python download and install (Linux/Ubuntu)
● Open the Terminal
● Run the following command:
○ sudo apt install python3
○ sudo apt install python3-pip
● Check with command python3
30. Python download and install (Mac OSX)
● Python 2 is installed on Mac by default, but we recommend using Python 3
● Go to the page https://www.python.org/downloads/ and download the latest
version of Python 3
● Install it
● Set the environment variable for python (it already done by default)
● Check with terminal by typing python3
35. Example
Let’s have a simple example, at the coffee
shop
● There are many choices on the menu for
which the customer can orders.
● Each time, the customers will select 1 or
more options for them and their friends.
● The program is to takes the orders,
calculates the price, and prints out the
bill.
36. Example analysis
Input Execute Output
Data about coffee: The menu, the
price for each type of drink.
Customer data: Which drinks do
the customers order.
Maps each drink to its price.
Sums up all the prices.
Displays on the screen for the
customers.
Prints out the bill.
37. So, how are we going to implement all of the above?
39. The “print” Command
● Display something on your screen
Type these lines in your IDE
print(“Hello World”)
print(“””
You can prints out every thing here
It will output with the exact format
“””)
40. How about writing to a file?
You can use the “with open” statement, like this:
with open(“aFile.txt”, “w”) as file:
file.write(“Some random words in here”)
41. Oops, be careful with this indent
with open(“aFile.txt”, “w”) as file:
file.write(“Some random words in here”)
This indent must be exactly 4 whitespace characters.
42. Let’s do a quick exercise
Your job is to draw a mighty sword with any
characters in a .doc file
45. Input from keyboard
You can prompt user with the input command, like below:
input(“Prompting: “)
input(“>>> “)
46. But, where do the inputs go?
● Do they just disappear???
○ Yes and No
● We need to store them somewhere for future use, and that “somewhere” is
called variables.
47. Variables
Variables are like a closet. You can store any
thing you want inside it, and take them out at
any time you want
48. How to use it?
The syntax to define a variable is
variable_name = <something you want to store>
For example:
name = input(“Input your name here: “)
print(name)
49. Other ways using variables
● With number: (You can do the calculating with these variables)
age = 16
sum = 2 + 3 ( = 5 )
product = 5 * 6 ( = 30)
quotient = 21 / 4 ( = 5.25)
● With boolean value:
is_a_girl = True
is_from_Japan = False
50. Be careful using it !!!
● It just works one way
○ This is good: number = 5
○ This is bad: 5 = number
○ This is also bad: number1 = number2 = 5
● Be careful naming the variables:
○ You can use lowercase, uppercase, number, underscore: downUp, UpDown, down_up,
up1_down2
○ Don’t put number at the beginning: 1_variable
○ Don’t use special character: not_this!,
or_this?,...
○ Don’t use word that is used in Python syntax: if, else, for,...
52. Compare 2 variables
● What if we want to know if 2 variables has the same value?
● We use 2 operator: == and !=
○ compare = bigger_number == smaller_number ( ? )
○ compare = bigger_number != smaller_number ( ? )
53. Variable data type
● What will happen if we compare 2 variable that has different data type? (E.g:
a number and a character string)
○ number = 10
○ word = “5”
○ compare = number > word
○ print(compare) ( ? )
● We should convert them to the same data type and then do some operation
on them
○ number2 = int(word)
○ compare = number > number2
○ print(compare)
54. Data Type Conversion
● Four data type you should remember for now:
int, float, str, bool
● Python syntax to switch between them:
converted_value = <convert_data_type>(initial_value)
● Example:
a_number = 3
a_string = str(a_number)
print(a_string)
● Python syntax to check the variable type:
type(variable)
55. An exercise to remember what we have learn so far
● A program that ask for the user’s name and Year of Birth
● Prints out a greeting with information like the following:
Tips: There is something missing in the “print” command, Google search for it!
58. Go back to the earlier example: The coffee shop
How did the computer work after it has received the order?
● Remember the order
● For each drink in the customer’s order:
○ Look for it in the data (menu)
○ Add the associate price to the total cost in the bill
● Show the total price to the customer and
the cashier
59. We divide that process into smaller pieces
Input
Assign the
order to
variables
Get the name
of the drink
Get the name
of the drink in
the menu
If 2 names
are the same
Add the price
to the total
cost
Show the
cost
For each variable
For each drink in the menu
True
How to solve this piece of problem
60. How to solve this piece of problem
● Remember how to compare 2 variables?
● How to direct the program in each case?
Same and not same?
If 2 names are
the same
62. If … else....
Python syntax:
if <conditional expression>:
#Do something if the expression is
true
else:
#Do something if the expression is
false
Also, this is call a comment
Comment line start with the # character
Computers will ignore every comment line
In
Condition
Command
block 1
Command
block 2
Out
False
True
63. Example
Write a program that ask for the user’s age, then tell them that they are:
● Young: if age < 20
● Old: if age > 20
Next level: we use something call elif
● Baby: if age < 5
● Young: if 5 < age < 18
● Grow up: if 18 < age < 60
● Old: if age > 60
64. Back to our previous example
Espresso
$5
Macchiato
$7
Latte
$8
Cappuccino
$10
1 latte please!
65. Practice makes perfect...
Create a program that:
● Require user’s input for weight and height
● Calculate the body mass index (BMI)
● Prints out the result to the screen (and may be some advice :p)
66. Another problem
● How to print out 1000 lines, each
line has a word “Hello” in it?
● How about 1000*1000 lines?
print(“Hello”)
print(“Hello”)
print(“Hello”)
print(“Hello”)
print(“Hello”)
print(“Hello”)
print(“Hello”)
print(“Hello”)
print(“Hello”)
.
.
.
.
.
.
.
.
.
.
print(“Hello”)
print(“””
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
.
.
.
.
.
.
.
.
.
.
Hello”””)
68. While
● To solve that problem, we use loop syntax
● In Python, we have 2 syntax for this:
while command
○ while <conditional expression>:
# Do some loop command here
In
Condition
Command
block
Out
False
True
69. For… in...
● To solve that problem, we use loop syntax
● In Python, we have 2 syntax for this:
for command
○ for i in range(0, <number of iterations>):
# Do some loop command here
● range(start, stop, step)
● Why do we need to start from 0?
In
i < num
Command
block
Out
False
True
70. Example
A program that prints out a table that:
● Compare between 2 types of temperature
measurement units: Celsius and Fahrenheit
● Start from 0 degree C to 100 degree C
● Each line is 10 degrees difference
● Use the following formula
71. Loop benefits
● Repeatedly does the same job, so you don’t have to write the same code for
many lines
● Makes the source code of your program more readable
72. Keep practicing
Build a program that:
● User inputs 1 number n (1<n<1000)
● If n is out of the above range, prints out
the error
● Else, prints out the sum of all the number
from 1 to n
● Please don’t use this formula, use loop
statements instead
73. Comeback to our previous example
Input
Assign the
order to
variables
Get the name
of the drink
Get the name
of the drink in
the menu
If 2 names
are the same
Add the price
to the total
cost
Show the
cost
For each variable
For each drink in the menu
True
74. How to store a huge number of value wisely?
● How about this piece of problem?
● What if the customer order 10 or 20 different
drinks?
○ Store them in 20 variables is not a good idea
○ Naming each variable will become nightmare if the number
of them increase
● Is there any another way to store this big number
of value?
Assign the
order to
variables
75. List
Use to store values in an effective, organized way
John
25
john@example.com
Name
Age
Email
John 25
john@example.com
John’s information
22/2/1995
DOB
22/2/1995
76. How to use List
● Define a List:
john_info = [“John”, 25, “22/2/1995”, “john@example.com”]
● How to use an element in the list:
Try this:
print(john_info[2])
77. How index works in a List?
john_info = [“John”, 25, “22/2/1995”, “john@example.com”]
0 1 2 3
78. Actually, the “for” loop and “list” make the perfect match
● You can use for statement to get the values out of a list
● For each value in the list, we do something with it
john_info = [“John”, 25, “22/2/1995”,
“john@example.com”]
for info in john_info:
print(info)
79. Let’s check back the previous example
● Seems like we have everything we need to do all of this
● Let me show you how to implement all of this at one
Input
Assign the
order to
variables
Get the
name of the
drink
Get the
name of the
drink in the
menu
If 2 names
are the same
Add the price
to the total
cost
Show the
cost
For each variable
For each drink in the menu
True
80. The last skill: Function and module
● Why do we need this?
○ Functions are like the blueprint of codes
○ You can reuse it as many time as you want without retyping
the code
○ Make the program’s code more readable
● Syntax:
def function_name(input_to_function):
# Do something here
● Modules are like the collection of functions, you
can share with others developer or keep it for later
use
81. Prepare for next week
● Using pip3 to download and install pyqt5 tools
82. The work you can do at home
● At the end of each session, you will be given 1 problem which you can do at
home.
● The result of your work will be assessed based on a variety of criteria.
● Each criteria passed, you will score some points.
● Candidates who get highest scores will have some gifts.
Join this Google classroom: hydfs5h
83. Books you can read at home
● Learn Python The Hard Way - Zed Shaw
(recommended!)
● Python rất là cơ bản - Võ Duy Tuấn
● Core Python Applications Programming -
Wesley J Chun
Editor's Notes
I’m not very good in English so might talk Vietnamese sometimes
How many of you have heard about programming
Have been programming
2. Hãy hỏi nhiều vì có thể tiếng Anh ko rõ thì sẽ nói tiếng Việt hoặc mình có thể coi mặc định là đã đúng nên khó cho người mới
https://www.visualcapitalist.com/millions-lines-of-code/
Nghĩ xem làm như nào họ tạo được những app đó? Các bước
There are many way to understand this process but in conclusion, it mainly contains the following
https://lvivity.com/5-phases-mobile-app-development-lifecycle
Easy to learn:
Even 10 year-old kid can acquire it
There are hundred, may be thousand of document about it out there, on the internet
Convenient to use:
NASA scientis use it to launch rocket
There are various tools which can help us develop our apps, tools here mean library, framework...
Short to write code:
We can compare the same purpose app with other programming, if C/C++ will need 30 line to work, Python only need about 5 or 6