This document provides an introduction to the Python programming language over 30 minutes. It covers basic Python concepts like variables, data types, conditionals, loops, functions, imports, strings, lists, tuples, sets, dictionaries, and classes. Code examples are provided to demonstrate how to use these features. The document encourages learners to continue learning Python through online documentation and resources.
The document provides an introduction to Python programming. It discusses installing and running Python, basic Python syntax like variables, data types, conditionals, and functions. It emphasizes that Python uses references rather than copying values, so assigning one variable to another causes both to refer to the same object.
Basic Python Programming: Part 01 and Part 02Fariz Darari
121 slidesโข3K views
This document discusses basic Python programming concepts including strings, functions, conditionals, loops, imports and recursion. It begins with examples of printing strings, taking user input, and calculating areas of shapes. It then covers variables and data types, operators, conditional statements, loops, functions, imports, strings, and recursion. Examples are provided throughout to demonstrate each concept.
Python modules allow code reuse and organization. A module is a Python file with a .py extension that contains functions and other objects. Modules can be imported and their contents accessed using dot notation. Modules have a __name__ variable that is set to the module name when imported but is set to "__main__" when the file is executed as a script. Packages are collections of modules organized into directories, with each directory being a package. The Python path defines locations where modules can be found during imports.
This document provides an overview of the Python programming language and its applications. It begins by defining Python as a clear and powerful object-oriented language. It then lists some of Python's key features, such as its elegant syntax, large standard library, ability to run on multiple platforms, and being free and open source. The document provides a simple "Hello World" example in Python. It also compares short code samples in Python, C++ and Java. The remainder of the document discusses some common applications of Python, including web development, science/engineering, robotics, GUI development, data science, machine learning, computer vision and more. It provides examples of using Python for tasks like web crawling, games development, file management and automation
Python 101: Python for Absolute Beginners (PyTexas 2014)Paige Bailey
52 slidesโข30.1K views
If you're absolutely new to Python, and to programming in general, this is the place to start!
Here's the breakdown: by the end of this workshop, you'll have Python downloaded onto your personal machine; have a general idea of what Python can help you do; be pointed in the direction of some excellent practice materials; and have a basic understanding of the syntax of the language.
Please don't forget to bring your laptop!
Audience: "Python 101" is geared toward individuals who are new to programming. If you've had some programming experience (shell scripting, MATLAB, Ruby, etc.), then you'll probably want to check out the more intermediate workshop, "Python 101++".
This document provides an overview of the Python programming language. It discusses what Python is, its key features, who uses it, common applications, and how to download and install Python. It then covers Python syntax concepts like identifiers, keywords, multiline statements, docstrings, indentation, comments, and string formatting. The document also introduces Python data types like numbers, strings, lists, tuples, dictionaries, sets and how to work with them. It describes how to convert between number types and access/update strings and lists. Finally, it discusses Python development environments like Anaconda and Spyder.
This Edureka Python Programming tutorial will help you learn python and understand the various basics of Python programming with examples in detail. Below are the topics covered in this tutorial:
1. Python Installation
2. Python Variables
3. Data types in Python
4. Operators in Python
5. Conditional Statements
6. Loops in Python
7. Functions in Python
8. Classes and Objects
Variables & Data Types In Python | EdurekaEdureka!
26 slidesโข3.1K views
YouTube Link: https://youtu.be/6yrsX752CWk
(** Python Certification Training: https://www.edureka.co/python **)
This Edureka PPT on 'Variables and Data Types in Python' will help you establish a foothold on Python by helping you learn basic concepts like variables and data types. Below are the topics covered in this PPT:
Introduction To Python
Applications Of Python
Variable Declaration
Variable Data Types
Type Conversion
Python Tutorial Playlist: https://goo.gl/WsBpKe
Blog Series: http://bit.ly/2sqmP4s
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
This document discusses functions and methods in Python. It defines functions and methods, and explains the differences between them. It provides examples of defining and calling functions, returning values from functions, and passing arguments to functions. It also covers topics like local and global variables, function decorators, generators, modules, and lambda functions.
This document provides an introduction and overview of the Python programming language. It discusses what Python is, its features, applications, and how to install Python on Windows and Linux systems. It also covers Python basics like variables, data types, operators, comments, conditional statements like if/else, and loops like for, while, and nested loops. Examples are provided for key concepts. The document is intended as a beginner tutorial for learning Python.
Youtube Link: https://youtu.be/woVJ4N5nl_s
** Python Certification Training: https://www.edureka.co/data-science-python-certification-course **
This Edureka PPT on 'Python Basics' will help you understand what exactly makes Python special and covers all the basics of Python programming along with examples.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This document discusses different types of flow control in Python programs. It explains that a program's control flow defines the order of execution and can be altered using control flow statements. There are three main types of control flow: sequential, conditional/selection, and iterative/looping.
Sequential flow executes code lines in order. Conditional/selection statements like if/else allow decisions based on conditions. Iterative/looping statements like for and while loops repeat code for a set number of iterations or as long as a condition is true. Specific conditional statements, loops, and examples are described in more detail.
The document provides an overview of the Python programming language. It discusses that Python is an easy to learn, high-level, open-source programming language. It describes Python's design philosophy of code readability and how it allows programmers to express concepts in fewer lines of code compared to languages like C++ and Java. The document also discusses Python's powerful libraries, wide use across industries, and how to get started with Python programming using the IDLE integrated development environment.
Python Tutorial | Python Tutorial for Beginners | Python Training | EdurekaEdureka!
74 slidesโข6.6K views
This Edureka Python tutorial will help you in understanding the various fundamentals of Python programming with examples in detail. This Python tutorial helps you to learn following topics:
1. Introduction to Python
2. Who uses Python
3. Features of Python
4. Operators in Python
5. Datatypes in Python
6. Flow Control
7. Functions in Python
8. File Handling in Python
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.
This document provides an overview of the Python programming language. It covers Python basics like syntax, datatypes, modules, and control structures. It also discusses topics like functions, classes, files, and popular Python modules. The document contains an agenda that outlines these topics and provides code samples to illustrate Python concepts hands-on. It aims to equip readers with foundational Python programming knowledge.
A program is a sequence of instructions that are run by the processor. To run a program, it must be compiled into binary code and given to the operating system. The OS then gives the code to the processor to execute. Functions allow code to be reused by defining operations and optionally returning values. Strings are sequences of characters that can be manipulated using indexes and methods. Common string methods include upper() and concatenation using +.
** Python Certification Training: https://www.edureka.co/python **
This Edureka PPT on 'Introduction To Python' will help you establish a strong hold on all the fundamentals in the Python programming language. Below are the topics covered in this PPT:
Introduction To Python
Keywords And Identifiers
Variables And Data Types
Operators
Loops In Python
Functions
Classes And Objects
OOPS Concepts
File Handling
YouTube Video: https://youtu.be/uYjRzbP5aZs
Python Tutorial Playlist: https://goo.gl/WsBpKe
Blog Series: http://bit.ly/2sqmP4s
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Functions allow programmers to organize code into reusable blocks. A function is defined using the def keyword and can accept parameters. The body of a function contains a set of statements that run when the function is called. Functions can return values and allow code to be reused, reducing errors and improving readability. Parameters allow information to be passed into functions, while return values allow functions to provide results.
Python has grown in popularity among employers and developers in recent years. It is now the fourth most popular language according to employer needs and ranks fourth in developer activity. Python was created by Guido van Rossum and emphasizes readability through its relatively complete style guidelines and "Pythonic" idioms. It is designed to have one obvious way to do things and prioritizes readability in its "Zen of Python" principles. Python is a multi-purpose language that is highly flexible and can be used for web development, scientific computing, statistical analysis, machine learning, database interaction, and artificial intelligence.
The document provides an overview of pandas series including:
- Creation of series from arrays, dictionaries, scalar values
- Mathematical operations on series like addition, subtraction
- Functions to access series data like head(), tail(), indexing, slicing
- Examples of arithmetic operations on series using operators and methods
Python is a popular programming language used in a variety of applications, including data analysis, web development, and artificial intelligence. Here's an introduction to the Basics of Python - A Beginners Guide! Whether you're new to programming or looking to brush up on your skills, this video covers the basics of Python programming language. From data types and operators to loops, functions and libraries, you'll get a solid foundation to start coding in Python.
Visit us: https://www.elewayte.com/
Python is a popular programming language created by Guido van Rossum in 1991. It is easy to use, powerful, and versatile, making it suitable for beginners and experts alike. Python code can be written and executed in the browser using Google Colab, which provides a Jupyter notebook environment and access to computing resources like GPUs. The document then discusses installing Python using Anaconda, basic Python concepts like indentation, variables, strings, conditionals, and loops.
This document provides an overview of the Python programming language. It begins by explaining what Python is - a general purpose, interpreted programming language that can be used as both a programming and scripting language. It then discusses the differences between programs and scripting languages. The history and creator of Python, Guido van Rossum, are outlined. The document explores the scope of Python and what tasks it can be used for. Popular companies and industries that use Python today are listed. Reasons why people use Python, such as it being free, powerful, and portable, are provided. Instructions for installing Python and running Python code are included. The document covers Python code execution and introduces basic Python concepts like variables, strings, data types, lists
This Edureka Python Programming tutorial will help you learn python and understand the various basics of Python programming with examples in detail. Below are the topics covered in this tutorial:
1. Python Installation
2. Python Variables
3. Data types in Python
4. Operators in Python
5. Conditional Statements
6. Loops in Python
7. Functions in Python
8. Classes and Objects
Variables & Data Types In Python | EdurekaEdureka!
26 slidesโข3.1K views
YouTube Link: https://youtu.be/6yrsX752CWk
(** Python Certification Training: https://www.edureka.co/python **)
This Edureka PPT on 'Variables and Data Types in Python' will help you establish a foothold on Python by helping you learn basic concepts like variables and data types. Below are the topics covered in this PPT:
Introduction To Python
Applications Of Python
Variable Declaration
Variable Data Types
Type Conversion
Python Tutorial Playlist: https://goo.gl/WsBpKe
Blog Series: http://bit.ly/2sqmP4s
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
This document discusses functions and methods in Python. It defines functions and methods, and explains the differences between them. It provides examples of defining and calling functions, returning values from functions, and passing arguments to functions. It also covers topics like local and global variables, function decorators, generators, modules, and lambda functions.
This document provides an introduction and overview of the Python programming language. It discusses what Python is, its features, applications, and how to install Python on Windows and Linux systems. It also covers Python basics like variables, data types, operators, comments, conditional statements like if/else, and loops like for, while, and nested loops. Examples are provided for key concepts. The document is intended as a beginner tutorial for learning Python.
Youtube Link: https://youtu.be/woVJ4N5nl_s
** Python Certification Training: https://www.edureka.co/data-science-python-certification-course **
This Edureka PPT on 'Python Basics' will help you understand what exactly makes Python special and covers all the basics of Python programming along with examples.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This document discusses different types of flow control in Python programs. It explains that a program's control flow defines the order of execution and can be altered using control flow statements. There are three main types of control flow: sequential, conditional/selection, and iterative/looping.
Sequential flow executes code lines in order. Conditional/selection statements like if/else allow decisions based on conditions. Iterative/looping statements like for and while loops repeat code for a set number of iterations or as long as a condition is true. Specific conditional statements, loops, and examples are described in more detail.
The document provides an overview of the Python programming language. It discusses that Python is an easy to learn, high-level, open-source programming language. It describes Python's design philosophy of code readability and how it allows programmers to express concepts in fewer lines of code compared to languages like C++ and Java. The document also discusses Python's powerful libraries, wide use across industries, and how to get started with Python programming using the IDLE integrated development environment.
Python Tutorial | Python Tutorial for Beginners | Python Training | EdurekaEdureka!
74 slidesโข6.6K views
This Edureka Python tutorial will help you in understanding the various fundamentals of Python programming with examples in detail. This Python tutorial helps you to learn following topics:
1. Introduction to Python
2. Who uses Python
3. Features of Python
4. Operators in Python
5. Datatypes in Python
6. Flow Control
7. Functions in Python
8. File Handling in Python
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.
This document provides an overview of the Python programming language. It covers Python basics like syntax, datatypes, modules, and control structures. It also discusses topics like functions, classes, files, and popular Python modules. The document contains an agenda that outlines these topics and provides code samples to illustrate Python concepts hands-on. It aims to equip readers with foundational Python programming knowledge.
A program is a sequence of instructions that are run by the processor. To run a program, it must be compiled into binary code and given to the operating system. The OS then gives the code to the processor to execute. Functions allow code to be reused by defining operations and optionally returning values. Strings are sequences of characters that can be manipulated using indexes and methods. Common string methods include upper() and concatenation using +.
** Python Certification Training: https://www.edureka.co/python **
This Edureka PPT on 'Introduction To Python' will help you establish a strong hold on all the fundamentals in the Python programming language. Below are the topics covered in this PPT:
Introduction To Python
Keywords And Identifiers
Variables And Data Types
Operators
Loops In Python
Functions
Classes And Objects
OOPS Concepts
File Handling
YouTube Video: https://youtu.be/uYjRzbP5aZs
Python Tutorial Playlist: https://goo.gl/WsBpKe
Blog Series: http://bit.ly/2sqmP4s
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Functions allow programmers to organize code into reusable blocks. A function is defined using the def keyword and can accept parameters. The body of a function contains a set of statements that run when the function is called. Functions can return values and allow code to be reused, reducing errors and improving readability. Parameters allow information to be passed into functions, while return values allow functions to provide results.
Python has grown in popularity among employers and developers in recent years. It is now the fourth most popular language according to employer needs and ranks fourth in developer activity. Python was created by Guido van Rossum and emphasizes readability through its relatively complete style guidelines and "Pythonic" idioms. It is designed to have one obvious way to do things and prioritizes readability in its "Zen of Python" principles. Python is a multi-purpose language that is highly flexible and can be used for web development, scientific computing, statistical analysis, machine learning, database interaction, and artificial intelligence.
The document provides an overview of pandas series including:
- Creation of series from arrays, dictionaries, scalar values
- Mathematical operations on series like addition, subtraction
- Functions to access series data like head(), tail(), indexing, slicing
- Examples of arithmetic operations on series using operators and methods
Python is a popular programming language used in a variety of applications, including data analysis, web development, and artificial intelligence. Here's an introduction to the Basics of Python - A Beginners Guide! Whether you're new to programming or looking to brush up on your skills, this video covers the basics of Python programming language. From data types and operators to loops, functions and libraries, you'll get a solid foundation to start coding in Python.
Visit us: https://www.elewayte.com/
Python is a popular programming language created by Guido van Rossum in 1991. It is easy to use, powerful, and versatile, making it suitable for beginners and experts alike. Python code can be written and executed in the browser using Google Colab, which provides a Jupyter notebook environment and access to computing resources like GPUs. The document then discusses installing Python using Anaconda, basic Python concepts like indentation, variables, strings, conditionals, and loops.
This document provides an overview of the Python programming language. It begins by explaining what Python is - a general purpose, interpreted programming language that can be used as both a programming and scripting language. It then discusses the differences between programs and scripting languages. The history and creator of Python, Guido van Rossum, are outlined. The document explores the scope of Python and what tasks it can be used for. Popular companies and industries that use Python today are listed. Reasons why people use Python, such as it being free, powerful, and portable, are provided. Instructions for installing Python and running Python code are included. The document covers Python code execution and introduces basic Python concepts like variables, strings, data types, lists
This document provides an overview of the Python programming language. It begins by explaining what Python is, noting that it is a general purpose programming language that is often used for scripting. The key differences between program and scripting languages are then outlined. The history and creation of Python by Guido van Rossum are summarized, along with Python's scope in fields like science, system administration, and web development. Various uses of Python are listed, followed by who commonly uses Python today such as Google and YouTube. Reasons for Python's popularity include being free, powerful, and portable. The document concludes by covering installing Python, running and executing Python code, and some basic Python concepts like strings, variables, data types, and loops/
Python is a general purpose programming language that can be used for web development, system administration, science and more. It is interpreted rather than compiled, and was created in the 1990s by Guido van Rossum to be highly readable. Python is widely used by companies like Google, YouTube, Intel and more due to its power, flexibility and readability. It supports key programming concepts like variables, conditionals, loops, lists, tuples and more.
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...DRVaibhavmeshram1
172 slidesโข69 views
Python
Language
is uesd in engineeringStory adapted from Stephen Covey (2004) โThe Seven Habits of Highly Effective Peopleโ Simon & Schuster).
โManagement is doing things right, leadership is doing the right thingsโ
(Warren Bennis and Peter Drucker)
Story adapted from Stephen Covey (2004) โThe Seven Habits of Highly Effective Peopleโ Simon & Schuster).
โManagement is doing things right, leadership is doing the right thingsโ
(Warren Bennis and Peter Drucker)
Story adapted from Stephen Covey (2004) โThe Seven Habits of Highly Effective Peopleโ Simon & Schuster).
โManagement is doing things right, leadership is doing the right thingsโ
(Warren Bennis and Peter Drucker)
The Sponsor:
Champion and advocates for the change at their level in the organization.
A Sponsor is the person who wonโt let the change initiative die from lack of attention, and is willing to use their political capital to make the change happen
The Role model:
Behaviors and attitudes demonstrated by them are looked upon by everyone else. . Hence, they must be willing to go first.
Employees watch leaders for consistency between words and actions to see if they should believe the change is really going to happen.
The decision maker:
Leaders usually control resources such as people, budgets, and equipment, and thus have the authority to make decisions (as per their span of control) that affect the initiative.
During change, leaders must leverage their decision-making authority and choose the options that will support the initiative.
The Decision-Maker is decisive and sets priorities that support change.
The Sponsor:
Champion and advocates for the change at their level in the organization.
A Sponsor is the person who wonโt let the change initiative die from lack of attention, and is willing to use their political capital to make the change happen
The Role model:
Behaviors and attitudes demonstrated by them are looked upon by everyone else. . Hence, they must be willing to go first.
Employees watch leaders for consistency between words and actions to see if they should believe the change is really going to happen.
The decision maker:
Leaders usually control resources such as people, budgets, and equipment, and thus have the authority to make decisions (as per their span of control) that affect the initiative.
During change, leaders must leverage their decision-making authority and choose the options that will support the initiative.
The Decision-Maker is decisive and sets priorities that support change.
The Sponsor:
Champion and advocates for the change at their level in the organization.
A Sponsor is the person who wonโt let the change initiative die from lack of attention, and is willing to use their political capital to make the change happen
The Role model:
Behaviors and attitudes demonstrated by them are looked upon by everyone else. . Hence, they must be willing to go first.
Employees watch leaders for consistency between words and actions to see if they s
Daniel Greenfeld gave a presentation titled "Intro to Python". The presentation introduced Python and covered 21 cool things that can be done with Python, including running Python anywhere, learning Python quickly, introspecting Python objects, working with strings, lists, generators, sets and dictionaries. The presentation emphasized Python's simplicity, readability, extensibility and how it can be used for a wide variety of tasks.
Daniel Greenfeld gave a presentation titled "Intro to Python" where he demonstrated 21 cool things that can be done with Python. These included running Python anywhere, learning it quickly, introspecting objects to see their attributes and methods, performing string operations, formatting strings, basic math operations, and working with lists. The presentation emphasized Python's simplicity, readability, and extensive standard library and ecosystem.
AI Machine Learning Complete Course: for PHP & Python DevsAmr Shawqy
96 slidesโข956 views
Course Discounted Link:
https://www.udemy.com/ai-machine-learning-complete-course/?couponCode=SLIDESHAREDISCOUNT
Become an AI & Machine Learning developer, one of employer's most requested skills for 2018/2019!
Add value to your solutions and products, it is time to start using AI & Machine Learning now!
This course is different than any other AI or Machine Learning course; it requires no prior knowledge in AI or Machine Learning before, and you will be able to have your own AI Machine Learning application up and running right after the course.
This course is straight-forward, practical, and gives you all what you need to start your career in Machine Learning and Data Science. If you are a developer, programmer, technical student, manager, team leader, and you have not explored AI and Machine Learning before, this course is the best, most exciting, and complete course for you.
Examples of how you can build applications that identifies a string language, identify colors, identify human actions "like jump, sleep, anger, sadness etc." in a video, identify if a tweet or a Facebook post is positive or negative, that are all a few examples of what you can do in this course, all explained and you can do it all by yourself during the step by stop journey in this course.
This course will make all AI concepts, terminology, and approaches clear for you, so you understand how everything around you is going, and takes you in a series of a very interesting hands-on step by step examples on how to build amazing AI applications.
The following topics are covered:
- AI
- Rule & Logic Based AI
- Machine Learning
- Machine Learning Types (Supervised, Unsupervised, Reinforced, etc.)
- Machine Learning Algorithms
- Neural Networks & Deep Neural Networks
- Deep Learning
- PHP Step by Step Examples
- Python Step by Step Examples
- Language Detection
- Color Detection
- Human Actions Identification in Videos
- General String Classification
- Handling numerical data, string data, image data, voice data, and video data.
- PHP-ML
- scikit-learn
- numpy
- TensorFlow
- TensorFlow Hub
- Neural Networks Math Step by Step
- And Much More!
Python is a widely used programming language that allows developers to work quickly and integrate systems effectively. It is a general purpose, high-level, interpreted, and cross-platform language. Many large companies use Python, including Google, Facebook, Microsoft, and NASA. The introductory session covered installing Python, writing basic print statements and functions, working with objects, lists, modules, conditions, loops, and more Python concepts. Code examples were provided to demonstrate the core features of the Python language.
The document provides information about an introduction to Python programming presented by Kiattisak Anoochitarom. It begins with welcoming messages and details about the presenter. It then discusses various Python topics like data types, operators, control flow statements, functions, built-in functions, and string and list methods. Examples are provided throughout to demonstrate different Python concepts and syntax. The goal is to teach the basics of the Python language.
A versรฃo 3 do Python teve seu lanรงamento final 2008, mas ainda hรก muitas dรบvidas se jรก estรก na hora de escrever aplicaรงรตes usando python 3. Eu irei mostrar sobre as diferenรงas entre o python 2 e o 3, as novidades e como portar seu cรณdigo para o python 3.
( ** Python Certification Training: https://www.edureka.co/python ** )
This Edureka PPT on Advanced Python tutorial covers all the important aspects of using Python for advanced use-cases and purposes. It establishes all of the concepts like system programming , shell programming, pipes and forking to show how wide of a spectrum Python offers to the developers.
Python Tutorial Playlist: https://goo.gl/WsBpKe
Blog Series: http://bit.ly/2sqmP4s
Follow us to never miss an update in the future.
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the 1990s by Guido van Rossum. Python is an interpreted language that is free, powerful, and portable. It can be used for tasks like web development, data analysis, and system scripting. The document provides an overview of Python including its history, uses, data types like strings and lists, and basic programming concepts like variables, conditionals, and loops. It recommends Python as a principal teaching language due to its free and easy installation, flexibility, use in academia and industry, and ability to offer a more rapid and enjoyable learning experience for students.
This document provides an outline and overview of a presentation on Python programming. The outline includes sections on what Python is, why Python, an introduction to Python, Python programming tips and tricks, more on Python, and the scientific module. Under each section, there are bullet points explaining key aspects of Python like its design, uses, basic syntax, data structures, functions, classes, modules, and popular scientific programming libraries like NumPy.
Python programming Workshop SITTTR - KalamasserySHAMJITH KM
150 slidesโข4.3K views
This document provides an overview of Python programming. It begins with an introduction and outlines topics to be covered including what Python is, its features, basics of syntax, importing, input/output functions, and more. Various Python concepts and code examples are then presented throughout in areas such as data types, operators, decision making with if/else statements, loops (for and while), functions, and classes. Examples include calculating square roots, the volume of a cylinder, checking for prime numbers, and a multiplication table. The document serves as teaching material for a Python programming course.
This document provides an introduction to the Java programming language. It discusses that Java is an object-oriented programming language used to write computer programs. It also describes the basic elements of the Java language including commands, variables, data types, control statements, and functions/methods. Additionally, it explains that the basic building block of Java is the class, and that a Java program or application consists of multiple classes organized into packages.
Data X Museum - Hari Museum Internasional 2022 - WMIDFariz Darari
32 slidesโข161 views
This document discusses the importance of preserving cultural heritage through museums and digitizing cultural artifacts and traditions. It provides statistics on the diversity of Indonesian culture and examples of how structured data and APIs can be used to catalog and provide access to cultural works, including examples from Wikidata and the Metropolitan Museum of Art. The document encourages utilizing structured data to digitally preserve traditions like rendang and making museum data widely available to promote cultural heritage for all.
Kuis tryout 1 mata kuliah Dasar-Dasar Pemrograman 2 Fasilkom UI berisi soal pilihan ganda dan esai tentang konsep-konsep dasar Java seperti tipe data, pewarisan, package, class, objek, dan string builder. Soal-soal tersebut bertujuan mengetes pemahaman mahasiswa terhadap materi pemrograman dasar yang telah diajarkan.
Game theory is the study of strategic decision making between interdependent parties. It analyzes situations where players make decisions that will impact outcomes for themselves and others. The document provides examples of classic game theory scenarios like the prisoner's dilemma and discusses concepts like dominant strategies, Nash equilibriums, and mixed strategies. It also presents a two-player "two-finger Morra game" to illustrate game theory principles.
Neural Networks and Deep Learning: An IntroFariz Darari
64 slidesโข1.3K views
This document provides an overview of neural networks and deep learning. It describes how artificial neurons are arranged in layers to form feedforward neural networks, with information fed from the input layer to subsequent hidden and output layers. Networks are trained using gradient descent to adjust weights between layers to minimize error. Convolutional neural networks are also discussed, which apply convolution and pooling operations to process visual inputs like images for tasks such as image classification. CNNs have achieved success in applications involving computer vision, natural language processing, and more.
Ringkasan dokumen tersebut adalah sebagai berikut:
1. Dokumen tersebut membahas tentang pengembangan talenta AI di perguruan tinggi dan hubungannya dengan industri, khususnya dalam memenuhi kebutuhan akan keterampilan AI.
2. Talenta AI di perguruan tinggi tidak hanya terfokus pada pendidikan AI saja, tetapi juga penelitian dan pengabdian masyarakat melalui teknologi AI.
3. Dibut
This document discusses several topics related to properly implementing AI in education, including:
1) Ensuring AI teacher evaluation and models are not biased toward specific demographic groups or teaching styles.
2) The importance of data quality when training AI models, such as removing duplicates and standardizing formats.
3) The need for explainable AI models.
4) Examples of non-machine learning AI applications, such as an automated study topic scheduler.
5) A reminder that we have a choice in how AI is designed to have a positive impact.
Featuring pointers for: Single-layer neural networks and multi-layer neural networks, gradient descent, backpropagation. Slides are for introduction, for deep explanation on deep learning, please consult other slides.
Current situation: focus is limited to only implement Tridharma, that is, education, research, and community service, with little concern on openness aspect.
The openness of Tridharma can potentially be a breakthrough in mitigating the quality gap issue: opening Tridharma outputs for public would help to increase the citizen inclusion in accessing the quality content of Tridharma, hence narrowing the quality gap in higher education.
Defense Slides of Avicenna Wisesa - PROWDFariz Darari
34 slidesโข190 views
This document presents ProWD, a tool for analyzing completeness in Wikidata. It introduces Wikidata and knowledge graphs, discusses issues like knowledge imbalance and inference errors due to lack of completeness awareness. It then presents a formal framework for completeness analysis using class, facet, and attribute profiles. This framework is implemented in ProWD, a proof of concept tool that allows analyzing Wikidata's completeness through single and compare views. ProWD is designed to be updated live and make completeness analysis accessible to laymen. Future work aims to expand the framework, improve scalability, and extend ProWD features.
This document provides an introduction to object-oriented programming concepts using Java. It begins by demonstrating how object-oriented thinking is natural through everyday examples of objects like cars and cats. It then defines key object-oriented programming terminology like class, object, attributes, and methods. The document walks through creating a sample Cube class to demonstrate these concepts in code. It shows how to define the class, instantiate objects, access attributes and call methods. The document also covers other OOP concepts like constructors, the toString() method, passing objects by reference, and the null value. Finally, it provides examples of real-world classes like String, LocalDate, Random and how to work with static variables and methods.
[ISWC 2013] Completeness statements about RDF data sources and their use for ...Fariz Darari
40 slidesโข95 views
This was presented at ISWC 2013 in Sydney, Australia.
Abstract:
With thousands of RDF data sources available on the Web covering disparate and possibly overlapping knowledge domains, the problem of providing high-level descriptions (in the form of metadata) of their content becomes crucial. In this paper we introduce a theoretical framework for describing data sources in terms of their completeness. We show how existing data sources can be described with completeness statements expressed in RDF. We then focus on the problem of the completeness of query answering over plain and RDFS data sources augmented with completeness statements. Finally, we present an extension of the completeness framework for federated data sources.
Testing in Python: doctest and unittest (Updated)Fariz Darari
33 slidesโข389 views
The document discusses testing in Python. It defines testing vs debugging, and explains why testing is important even for professional programmers. It provides examples of manually testing a square area function that initially had a bug, and how the bug was detected and fixed. It then introduces doctest and unittest as systematic ways to test in Python, providing examples of using each. Finally, it discusses test-driven development as a software development method where tests are defined before writing code.
Testing in Python: doctest and unittestFariz Darari
33 slidesโข562 views
The document discusses testing in Python. It defines testing vs debugging, and explains why testing is important even for professional programmers. It introduces doctest and unittest as systematic ways to test Python code. Doctest allows embedding tests in docstrings, while unittest involves writing separate test files. The document also covers test-driven development, which involves writing tests before coding to define desired behavior.
Dissertation Defense - Managing and Consuming Completeness Information for RD...Fariz Darari
70 slidesโข457 views
The ever increasing amount of Semantic Web data gives rise to the question: How complete is the data? Though generally data on the Semantic Web is incomplete, many parts of data are indeed complete, such as the children of Barack Obama and the crew of Apollo 11. This thesis aims to study how to manage and consume completeness information about Semantic Web data. In particular, we first discuss how completeness information can guarantee the completeness of query answering. Next, we propose optimization techniques of completeness reasoning and conduct experimental evaluations to show the feasibility of our approaches. We also provide a technique to check the soundness of queries with negation via reduction to query completeness checking. We further enrich completeness information with timestamps, enabling query answers to be checked up to when they are complete. We then introduce two demonstrators, i.e., CORNER and COOL-WD, to show how our completeness framework can be realized. Finally, we investigate an automated method to generate completeness statements from text on the Web via relation cardinality extraction.
The document provides information about research writing. It discusses that everyone can be considered a researcher through everyday activities like using social media or traveling. Research is defined as a careful, diligent search to establish new facts or reach conclusions. The constituents of research are outlined as defining problems, formulating hypotheses, collecting and analyzing data, and validating conclusions. The document emphasizes that research writing is important and discusses choosing the right research topic and venue for publication. It provides tips for writing different sections of a research paper and following the common three-phase model of initial workshop or conference papers leading to a journal publication.
KOI - Knowledge Of Incidents - SemEval 2018Fariz Darari
18 slidesโข109 views
We present KOI (Knowledge Of Incidents), a system that given news articles as input, builds a knowledge graph (KOI-KG) of incidental events.
KOI-KG can then be used to efficiently answer questions such as "How many killing incidents happened in 2017 that involve Sean?" The required steps in building the KG include:
(i) document preprocessing involving word sense disambiguation, named-entity recognition, temporal expression recognition and normalization, and semantic role labeling;
(ii) incidental event extraction and coreference resolution via document clustering; and (iii) KG construction and population.
Slides made and presented by Paramita.
Comparing Index Structures for Completeness ReasoningFariz Darari
43 slidesโข115 views
Data quality is a major issue in the development of knowledge graphs. Data completeness is a key factor in data quality that concerns the breadth, depth, and scope of information contained in knowledge graphs. As for large-scale knowledge graphs (e.g., DBpedia, Wikidata), it is conceivable that given the amount of information contained in there, they may be complete for a wide range of topics, such as children of Donald Trump, cantons of Switzerland, and presidents of Indonesia. Previous research has shown how one can augment knowledge graphs with statements about their completeness, stating which parts of data are complete. Such meta-information can be leveraged to check query completeness, that is, whether the answer returned by a query is complete. Yet, it is still unclear how such a check can be done in practice, especially when a large number of completeness statements are involved. We devise implementation techniques to make completeness reasoning in the presence of large sets of completeness statements feasible, and experimentally evaluate their effectiveness in realistic settings based on the characteristics of real-world knowledge graphs.
Oxford English for Aviation Book for studentstuyen nguyen
97 slidesโข9 views
English for Logistics has been developed specifically for people who work in the logistics industry and who need English to communicate in a variety of situations with colleagues, clients, and business partners. It supplies you with the target vocabulary and commonly used expressions that are essential to communication whether you work for a shipping agent, a customs broker, or a freight forwarder.
English for Logistics covers a range of subjects associated with the logistics industry. Learners in management-level positions will find their needs catered for, just as much as those in warehousing or administration. Units from the book work independently and can be selected according to the needs and interests of the course participants. English for Logistics is also ideal for self-study.
Each unit begins with a Starter, which consists of a short exercise or a quiz and serves as an introduction to the topic of the unit. Practical exercises, listening extracts, industry-specific texts as well as photos and illustrations help you to acquire key
vocabulary and expressions. Realistic role-plays give you the opportunity to put all you have learned into practice. Each unit closes with an Output activity, an article related to the topic of the unit followed by questions for reflection and discussion. Finally the book finishes up with a fun quiz to Test yourself! on some of the facts and figures discussed over the previous eight units.
The MultiROM contains all the Listening extracts from the book. These can be played through the audio player on your computer, or through a conventional CD player. In order to give yourself extra listening practice, listen to it in your car. The Interactive exercises let you review your learning by doing Useful phrases, Vocabulary, and Communication exercises on your computer. This will be particularly valuable if you are using the book for self-study.
In the appendix of English forLogisticsyou will find the Partner Files for the role-plays and the Answer key so that you can check your own answers if you are working alone. There are also Transcripts of the listening extracts, an A-Z word list, and a list of Usefulphrases and vocabulary. Finally, we have included a Glossary of acronyms and abbreviations and a Weights and measures conversion chart; these can be used as handy references at work.
OXFORD
UNlVERSJTY PRESS
Greac Clarendon Street. Oxford ox2 6DP
Oxford University Press is a department of the University of Oxford. lefurthers che University"s objectiveof excellence in research.scholarship. and education by publishing worldwide in
Oxford NewYork
Auckland Cape Town Dar es Salaam Hong Kong Karachi Kuala Lumpur Madrid Melbourne Mexico City Nairobi New Delhi Shanghai Taipei Toronto
With offices in
Argentina Austria Brazil Chile Czech Republic France Greece Guatemala Hungary Italy Japan Poland Portugal Singapore South Korea Swiczerland Thailand Turkey Ukraine Vietnam
OXFORD and OXFORD fNGllSll areregistered trade marks of
Windows Movie Maker 2025 Crack + Registration Code Free Downloadca6725722
8 slidesโข45 views
Please copy the link and paste it into Google New Tab ๐๐๐
https://pcsoftfull.com/ddl/
Windows Movie Maker Crack + Key has a great layout to work according to the needs of Microsoft users. It has fantastic features which are easy to use. It has a beautiful graphical interface that has two different parts. Those parts have named View, and the other one is Storyboard.
VADY Converts Context into Scalable Business InnovationNewFangledVision
1 slideโข8 views
VADYโs context-aware AI analytics takes raw data and transforms it into actionable insights, fostering innovation. Its AI-powered business intelligence aligns analytics with market dynamics, enabling businesses to pivot strategically. By utilizing conversational analytics platforms, VADY delivers deeper insights in real-time, allowing leaders to make informed decisions faster. With enterprise AI solutions, organizations gain access to adaptive models that evolve with shifting business landscapes. VADY ensures that companies stay innovative, data-driven, and competitive by integrating cutting-edge AI technologies.
How Gamification Can Boost Engagement in Travel Appsmohit579916
9 slidesโข15 views
Boost user engagement in travel apps with gamification! This PPT explores how rewards, points, and interactive elements drive retention and enhance customer experience in the travel apps.
โก๏ธ ๐๐ฑ๐COPY & PASTE LINK๐๐๐ https://crack4pro.net/download-latest-windows-softwaresz/
Toon Boom Harmony helps you stay focused by neatly consolidating your go-to onion-skinning tools and newly added features into one window.
โก๏ธ ๐๐ฑ๐COPY & PASTE LINK๐๐๐ https://crackingcity.org/download-full-setup-free/ ๐๐๐
As time passed, the data that could be stored on our computers have grown to have greater and greater value, either from an economic or sentimental standpoint. This makes data safekeeping an important aspect of our lives. A suitable software solution in case of failures and deletions, such as Recoverit, can be a good backup plan.
AI/ML Infra Meetup | Deployment, Discovery and Serving of LLMs at Uber ScaleAlluxio, Inc.
16 slidesโข148 views
AI/ML Infra Meetup
Mar. 06, 2025
Organized by Alluxio
For more Alluxio Events: https://www.alluxio.io/events/
Speaker:
- Sean Po (Staff SWE @ Uber)
- Tse-Chi Wang (Senior SWE @ Uber)
This talk provided a deep dive into how Uber manages its Generative AI Gateway, which powers all generative AI applications across the company.
Building Effective Web Portals with Claris FileMakerDBServices1
26 slidesโข15 views
Discover how to design client and employee web portals in Claris FileMaker that enhance user experience and streamline workflows. This webinar will guide you through best practices for building web portals, including when to leverage WebDirect and when alternative approaches might be more effective. Gain insights into optimizing web portal performance, ensuring security, and creating a seamless, responsive experience for your users.
LLM-based Multi-Agent Systems to Replace Traditional SoftwareIvo Andreev
35 slidesโข10 views
The potential of LLMs is severely underutilized as they are much more capable than generating completions or summarizing content. LLMs demonstrate remarkable capabilities in reaching a level of reasoning and planning comparable to human abilities. Microsoft CEO Satya Nadella revealed the shocking future of traditional software as we know it as being replaced by intelligent agents. In this session we introduce how would that be possible, what are the benefits and challenges and make our steps into the concept with a practical implementation.
AIThe Rise of AI Twins: How Digital Twins Are Changing Business Strategyasmith539880
12 slidesโข19 views
Digital twins create virtual replicas of physical assets, enabling real-time monitoring and predictive analytics. This topic covers their role in optimizing production, logistics, and financial planning.
7 Micro-Metrics That Predict Production Outages in Performance Labs WebinarTier1 app
37 slidesโข119 views
Traditional performance testing focuses on macro metrics like response times, CPU usage, and memory consumption. However, these high-level indicators often fail to detect subtle performance degradations that later lead to production outages.
In this webinar, we explored 7 critical micro-metrics that provide early warning signs of performance issues before they impact production. By analyzing key indicators such as GC behavior, object creation rate, thread patterns, and TCP/IP connection states, teams can uncover hidden inefficiencies and prevent costly downtime.
โก๏ธ ๐๐ฑ๐COPY & PASTE LINK๐๐๐ https://crack4pro.net/download-latest-windows-softwaresz/
Avoid statistical jargon. In clear language, Prism presents an extensive library of analyses from common to definiteโnonlinear regression, t-tests, nonparametric comparisons, one-, two- and three-way ANOVA, analysis of contingency tables, survival analysis, and much more. Each analysis has a checklist to help you understand the critical statistical assumptions and confirm you have selected an appropriate test.
Advance Steel Addon for Autodesk AutoCAD Crack Free Downloadraffayihan9
24 slidesโข22 views
โก๏ธ ๐๐ฑ๐COPY & PASTE LINK๐๐๐ https://crack4pro.net/download-latest-windows-softwaresz/
Autodesk Advance Steel detailing software is built on the AutoCAD platform. Structural engineering professionals use it to accelerate design, steel detailing, fabrication, and construction.
Disk Drill Pro crack free software downloadcalewi5784
12 slidesโข16 views
๐ Click this link to download NOW : https://shorturl.at/zvrcM
Disk Drill Pro is a powerful data recovery tool that helps users restore lost or deleted files from hard drives, SSDs, USB drives, SD cards, and other storage devices. It supports over 400 file formats, making it ideal for recovering documents, photos, videos, and more
7. 7
But this Python!
Programming Language
Freely Usable Even for Commercial UseCreated in 1991 by Guido van Rossum
Cross Platform
8. "Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
8
print("Python" + " is " + "cool!")
9. print("Python" + " is " + "cool!")
"Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
9
10. print("Python" + " is " + "cool!")
"Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
10
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
11. print("Python" + " is " + "cool!")
"Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
11
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
print("Hello world!")
12. "Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
12
print("Python" + " is " + "cool!")
13. 13
print("Python" + " is " + "cool!")
"Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
Big names using Python
14. "Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
14
print("Python" + " is " + "cool!")
Image Processing using Python
https://opencv.org/
15. "Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
15
print("Python" + " is " + "cool!")
Game Development using Python
https://www.pygame.org
16. "Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
16
print("Python" + " is " + "cool!")
Data Science using Python
https://matplotlib.org/
17. "Python is easy to use, powerful, and versatile, making it a great choice
for beginners and experts alike." โ codeschool.com
17
print("Python" + " is " + "cool!")
Natural Language Processing (NLP) and Text Mining using Python
https://github.com/amueller/word_cloud
19. How to install Python the Anaconda way
1. Download Anaconda (which includes Python):
https://www.anaconda.com/download/
2. Run the installer and follow the installation instructions
3. Run the Spyder editor and create your first Python program "helloworld.py"
19
Python Setup
20. โข Variables store and give names to data values
โข Data values can be of various types:
โข int : -5, 0, 1000000
โข float : -2.0, 3.14159
โข bool : True, False
โข str : "Hello world!", "K3WL"
โข list : [1, 2, 3, 4], ["Hello", "world!"], [1, 2, "Hello"], [ ]
โข And many more!
โข In Python, variables do not have types!
โข Data values are assigned to variables using "="
20
Variables and Data Types
x = 1 # this is a Python comment
x = x + 5
y = "Python" + " is " + "cool!"
23. โข Cores of programming!
โข Rely on boolean expressions which return either True or False
โข 1 < 2 : True
โข 1.5 >= 2.5 : False
โข answer == "Computer Science" :
can be True or False depending on the value of variable answer
โข Boolean expressions can be combined with: and, or, not
โข 1 < 2 and 3 < 4 : True
โข 1.5 >= 2.5 or 2 == 2 : True
โข not 1.5 >= 2.5 : True
23
Conditionals and Loops
24. 24
Conditionals: Generic Form
if boolean-expression-1:
code-block-1
elif boolean-expression-2:
code-block-2
(as many elif's as you want)
else:
code-block-last
25. 25
Conditionals: Usia SIM (Driving license age)
age = 20
if age < 17:
print("Belum bisa punya SIM!")
else:
print("OK, sudah bisa punya SIM.")
26. 26
Conditionals: Usia SIM dengan Input
age = int(raw_input("Usia: ")) # use input() for Python 3
if age < 17:
print("Belum bisa punya SIM!")
else:
print("OK, sudah bisa punya SIM.")
28. โข Useful for repeating code!
โข Two variants:
28
Loops
while boolean-expression:
code-block
for element in collection:
code-block
29. 29
While Loops
while raw_input("Which is the best subject? ") != "Computer Science":
print("Try again!")
print("Of course it is!")
while boolean-expression:
code-block
30. So far, we have seen (briefly) two kinds of collections:
string and list
For loops can be used to visit each collection's element:
30
For Loops
for element in collection:
code-block
for chr in "string":
print(chr)
for elem in [1,3,5]:
print(elem)
35. โข Code made by other people shall be reused!
โข Two ways of importing modules (= Python files):
โข Generic form: import module_name
import math
print(math.sqrt(4))
โข Generic form: from module_name import function_name
from math import sqrt
print(sqrt(4))
35
Imports
37. โข String is a sequence of characters, like "Python is cool"
โข Each character has an index
โข Accessing a character: string[index]
x = "Python is cool"
print(x[10])
โข Accessing a substring via slicing: string[start:finish]
print(x[2:6])
37
String
P y t h o n i s c o o l
0 1 2 3 4 5 6 7 8 9 10 11 12 13
38. >>> x = "Python is cool"
>>> "cool" in x # membership
>>> len(x) # length of string x
>>> x + "?" # concatenation
>>> x.upper() # to upper case
>>> x.replace("c", "k") # replace characters in a string
38
String Operations
P y t h o n i s c o o l
0 1 2 3 4 5 6 7 8 9 10 11 12 13
39. >>> x = "Python is cool"
>>> x.split(" ") 39
String Operations: Split
P y t h o n i s c o o l
0 1 2 3 4 5 6 7 8 9 10 11 12 13
P y t h o n
0 1 2 3 4 5
i s
0 1
c o o l
0 1 2 3
x.split(" ")
40. >>> x = "Python is cool"
>>> y = x.split(" ")
>>> ",".join(y) 40
String Operations: Join
P y t h o n , i s , c o o l
0 1 2 3 4 5 6 7 8 9 10 11 12 13
P y t h o n
0 1 2 3 4 5
i s
0 1
c o o l
0 1 2 3
",".join(y)
42. โข Working with data heavily involves reading and writing!
โข Data come in two types:
โข Text: Human readable, encoded in ASCII/UTF-8, example: .txt, .csv
โข Binary: Machine readable, application-specific encoding,
example: .mp3, .mp4, .jpg
42
Input/Output
46. 46
Output
# write mode
x = open("carpe-diem.txt", "w")
x.write("carpendiemn")
x.close()
# append mode
x = open("carpe-diem.txt", "a")
x.write("carpendiemn")
x.close()
Write mode overwrites files,
while append mode does not overwrite files but instead appends at the end of the files' content
49. โข If a string is a sequence of characters, then
a list is a sequence of items!
โข List is usually enclosed by square brackets [ ]
โข As opposed to strings where the object is fixed (= immutable),
we are free to modify lists (that is, lists are mutable).
49
Lists
x = [1, 2, 3, 4]
x[0] = 4
x.append(5)
print(x) # [4, 2, 3, 4, 5]
50. 50
List Operations
>>> x = [ "Python", "is", "cool" ]
>>> x.sort() # sort elements in x
>>> x[0:2] # slicing
>>> len(x) # length of string x
>>> x + ["!"] # concatenation
>>> x[2] = "hot" # replace element at index 0 with "hot"
>>> x.remove("Python") # remove the first occurrence of "Python"
>>> x.pop(0) # remove the element at index 0
51. It is basically a cool way of generating a list
51
List Comprehension
[expression for-clause condition]
Example:
[i*2 for i in [0,1,2,3,4] if i%2 == 0]
[i.replace("o", "i") for i in ["Python", "is", "cool"] if len(i) >= 3]
52. โข Like a list, but you cannot modify it (= immutable)
โข Tuple is usually (but not necessarily) enclosed by parentheses ()
โข Everything that works with lists, works with tuples,
except functions modifying the tuples' content
โข Example:
52
Tuples
x = (0,1,2)
y = 0,1,2 # same as x
x[0] = 2 # this gives an error
54. โข As opposed to lists, in sets duplicates are removed and
there is no order of elements!
โข Set is of the form { e1, e2, e3, ... }
โข Operations include: intersection, union, difference.
โข Example:
54
Sets
x = [0,1,2,0,0,1,2,2]
y = {0,1,2,0,0,1,2,2}
print(x)
print(y)
print(y & {1,2,3}) # intersection
print(y | {1,2,3}) # union
print(y - {1,2,3}) # difference
55. 55
Dictionaries
โข Dictionaries map from keys to values!
โข Content in dictionaries is not ordered.
โข Dictionary is of the form { k1:v1, k2:v2, k3:v3, ... }
โข Example:
x = {"indonesia":"jakarta", "germany":"berlin","italy":"rome"}
print(x["indonesia"]) # get value from key
x["japan"] = "tokyo" # add a new key-value pair to dictionary
print(x) # {'italy': 'rome', 'indonesia': 'jakarta', 'germany': 'berlin', 'japan': 'tokyo'}
57. โข While in functions we encapsulate a set of instructions,
in classes we encapsulate objects!
โข A class is a blueprint for objects, specifying:
โข Attributes for objects
โข Methods for objects
โข A class can use other classes as a base
โข Generic:
57
Classes
class class-name(base):
attribute-code-block
method-code-block
58. class Person:
def __init__(self, first, last):
self.firstname = first
self.lastname = last
def describe(self):
return self.firstname + " " + self.lastname
guido = Person("Guido","Van Rossum")
print(guido.describe())
58
Classes: Person
class class-name(base):
attribute-code-block
method-code-block
59. 59
Classes: Person & Employee
class class-name(base):
attribute-code-block
method-code-block
# first add code for class Person here
class Employee(Person):
def __init__(self, first, last, staffnum):
Person.__init__(self, first, last)
self.staffnum = staffnum
def describe(self):
return self.lastname + ", " + str(self.staffnum)
guido = Employee("Guido", "Van Rossum", 123456)
print(guido.describe())
#3: African rock pythons are the largest species of snake in Africa.
PHOTOGRAPH BY JOEL SARTORE, NATIONAL GEOGRAPHIC PHOTO ARK
https://emojiisland.com/pages/download-new-emoji-icons-in-png-ios-10
#38: start: where we start taking the substring
finish: the index one after we end the substring
#42: https://www.pexels.com/photo/alphabet-boogle-dice-enjoy-262529/
This Latin phrase, which literally means "pluck the day," was used by the Roman poet Horace to express the idea that we should enjoy life while we can. His full injunction, "carpe diem quam minimum credula postero,โ can be translated as โpluck the day, trusting as little as possible in the next one,โ but carpe diem alone has come to be used as shorthand for this entire idea, which is more widely known as "seize the day."
#61: https://commons.wikimedia.org/wiki/File:Blauwdruk-Ronhaar.jpg
1923 blueprint for shophouse with bakery Ronhaar at the Hammerweg in Ommen, demolished in 2007; the almost flat upper part of the mansard roof is found in the central and eastern Netherlands, but is virtually unknown in the river area and in the southern part of the Netherlands.