This document contains a presentation on Python programming. It introduces Python basics like printing "Hello World", using Python as a calculator, strings and other data types, functions, classes, conditional statements like if/else, and repetition with while loops. The presentation covers Python concepts in 10 sections and includes code examples for each topic.
En esta charla veremos con detalle algunas de las construcciones más pythonicas y las posibilidades de expresar de forma clara, concisa y elegante cosas que en otros lenguajes nos obligarían a dar muchos rodeos.
A veces es fácil olvidar algunos recursos como que una función puede devolver varios valores, cómo manipular listas y diccionarios de forma sencilla, contextos, generadores... En esta charla veremos de forma entretenida y práctica cómo mejorar nuestro nivel de Python "nativo".
Simply Business is starting to look into new tools to improve some of our mission-critical systems. There is one application, which would hugely benefit from the concurrency and fault tolerance model offered by languages like Elixir.
To increase awareness and gauge interest in the technology, we will have a bootcamp dedicated to giving us more insights into how to build and architect applications using Elixir and OTP.
It is meant to aim for slightly more advanced concepts, so in order to prepare rest of the team to be able to read the code and have some basic understanding of constructs and tooling - we have organised a LevelUP session, to talk exactly about that...
En esta charla veremos con detalle algunas de las construcciones más pythonicas y las posibilidades de expresar de forma clara, concisa y elegante cosas que en otros lenguajes nos obligarían a dar muchos rodeos.
A veces es fácil olvidar algunos recursos como que una función puede devolver varios valores, cómo manipular listas y diccionarios de forma sencilla, contextos, generadores... En esta charla veremos de forma entretenida y práctica cómo mejorar nuestro nivel de Python "nativo".
Simply Business is starting to look into new tools to improve some of our mission-critical systems. There is one application, which would hugely benefit from the concurrency and fault tolerance model offered by languages like Elixir.
To increase awareness and gauge interest in the technology, we will have a bootcamp dedicated to giving us more insights into how to build and architect applications using Elixir and OTP.
It is meant to aim for slightly more advanced concepts, so in order to prepare rest of the team to be able to read the code and have some basic understanding of constructs and tooling - we have organised a LevelUP session, to talk exactly about that...
Python là ngôn ngữ lập trình đơn giản và đang càng này càng trở lên phổ biến. Bài giảng này cung cấp cách tiếp cận đơn giản dễ hiểu với python một cách dễ dàng nhất
1024+ Seconds of JS Wizardry - JSConf.eu 2013Martin Kleppe
We spend our days creating large-scale applications byte by byte. But what happens at night when we get rid of bloated libraries and browser dependencies? What will we discover deep under the surface if we dissect the language of the web into its atomic parts?
In this talk we will hack tweet-sized games, write code in only six characters and create the self-modifying “Hello World” in less than 1024 bytes of JavaScript. All just for fun and without asking “Why?”.
Prepare yourself for 140 slides full of old-school ASCII art and crazy code golfing!
More info here: http://2013.jsconf.eu/speakers/martin-kleppe-1024-seconds-of-js-wizardry.html
발표자: 김준호(Lunit)
발표일: 2018.1.
의료 AI 관련 중, nodule detection 문제에 대해 다뤄보고자 합니다.
의료 AI에서는 어떠한 방식으로 classication을 하고, preprocessing은 어떤식으로 진행되는지 LUNA16이라는 의료 challenge에 이용되는 데이터를 가지고 발표를 진행해보고자 합니다.
이후, 이 데이터를 이용해서 최근 2017 MICCAI (의료 영상학회에서는 높은 수준의 학회)에서 발표된 "curriculum adaptive sampling for extreme data imbalance"를 실제 구현해서 적용해보고 이 때 발생할 수 있는 문제를 어떤식으로 해결할 수 있는지에 대한 tip도 제공할 예정입니다. (Python multi-processing data load, input-pipeline)
위 논문을 선정한 이유는, 단순한 classification이 아닌, nodule이 있는 위치도 정확하게 catch하는 논문 중, performance가 상당히 높기 때문입니다.
Tokyo APAC Groundbreakers tour - The Complete Java DeveloperConnor McDonald
A look at the techniques that middle tier developers can employ to get greater value out of their applications, simply by having an understanding of how the database works and how to make it sing.
Помните легендарные Java Puzzlers? Да-да, те самые, с Джошом Блохом и Нилом Гафтером? Ну, по которым ещё книжку написали? Так вот, в Groovy всё ещё веселее.
В смысле — задачки ещё более странные, и ответы ещё более поразительные. Этот доклад для вас, Groovy-разработчики, мы покажем вам настоящие, большие и красивые подводные камни! И для вас, Java-разработчики, потому что таких вещей на Java-подобном синтакисе вы точно никогда не видели! И для вас, PHP-разработчики… хотя, нет, не для вас :)
Всем точно будет весело — ваши ведущие Женя и Барух будут зажигать, шутить, спорить, бросаться футболками в публику, и самое главное — заставят вас офигевать от Groovy.
A helper to make the life of Wordpress developers easier.
This helper can be used to quickly register Custom Post Types, Taxonomies, Meta Boxes, Menu Pages and Sidebars within your Wordpress projects. Please comment, review, watch, fork and report bugs.
Observances of UN International Women's Day 2011
The Universal Peace Federation upholds the essential value and central role of women in peacebuilding and human development.
UPF affirms the need for women to serve in leadership positions throughout the world in all sectors of society.
UPF recognizes the equal value of men and women. Their absolute value derives from a common origin, God. God is the origin of both men and women, and all of God’s creation manifests complementary masculine and feminine aspects.
Men and women are extensions and manifestations of God’s harmonious masculinity and femininity. The complementary relationship between men and women expresses the wholeness of human experience. Thus, there should be no gender discrimination but rather harmony of the sexes through love.
Throughout history, women have taken the leading role in cultivating families as the dwelling places of peace, love, and health in shaping the individual character of children, and in fostering harmonious social relationships. In the family, both father and mother are equally entitled to reverence and honor. The path toward establishing global peace begins with strengthening families.
The ideal of peace is at the core of all religions. Through dialogue and mutual understanding, there can be peace among religions, and peace among religions is a necessary prerequisite for world peace. Women can and should play a central role in promoting interfaith understanding and cooperation.
UPF emphasizes the essential importance of women in addressing issues of peace and development in all sectors, including politics, business, culture, and religion. Women must be encouraged and empowered to assume leadership roles in the resolution of conflict, peacebuilding, and sustainable development.
UPF supports the achievement of the United Nations' Millennium Development Goals, which include improved status, education, health, and physical well-being of women. Six of these eight goals are related to women; therefore, by uplifting the condition of women, the Millennium Development Goals will be advanced.
Python là ngôn ngữ lập trình đơn giản và đang càng này càng trở lên phổ biến. Bài giảng này cung cấp cách tiếp cận đơn giản dễ hiểu với python một cách dễ dàng nhất
1024+ Seconds of JS Wizardry - JSConf.eu 2013Martin Kleppe
We spend our days creating large-scale applications byte by byte. But what happens at night when we get rid of bloated libraries and browser dependencies? What will we discover deep under the surface if we dissect the language of the web into its atomic parts?
In this talk we will hack tweet-sized games, write code in only six characters and create the self-modifying “Hello World” in less than 1024 bytes of JavaScript. All just for fun and without asking “Why?”.
Prepare yourself for 140 slides full of old-school ASCII art and crazy code golfing!
More info here: http://2013.jsconf.eu/speakers/martin-kleppe-1024-seconds-of-js-wizardry.html
발표자: 김준호(Lunit)
발표일: 2018.1.
의료 AI 관련 중, nodule detection 문제에 대해 다뤄보고자 합니다.
의료 AI에서는 어떠한 방식으로 classication을 하고, preprocessing은 어떤식으로 진행되는지 LUNA16이라는 의료 challenge에 이용되는 데이터를 가지고 발표를 진행해보고자 합니다.
이후, 이 데이터를 이용해서 최근 2017 MICCAI (의료 영상학회에서는 높은 수준의 학회)에서 발표된 "curriculum adaptive sampling for extreme data imbalance"를 실제 구현해서 적용해보고 이 때 발생할 수 있는 문제를 어떤식으로 해결할 수 있는지에 대한 tip도 제공할 예정입니다. (Python multi-processing data load, input-pipeline)
위 논문을 선정한 이유는, 단순한 classification이 아닌, nodule이 있는 위치도 정확하게 catch하는 논문 중, performance가 상당히 높기 때문입니다.
Tokyo APAC Groundbreakers tour - The Complete Java DeveloperConnor McDonald
A look at the techniques that middle tier developers can employ to get greater value out of their applications, simply by having an understanding of how the database works and how to make it sing.
Помните легендарные Java Puzzlers? Да-да, те самые, с Джошом Блохом и Нилом Гафтером? Ну, по которым ещё книжку написали? Так вот, в Groovy всё ещё веселее.
В смысле — задачки ещё более странные, и ответы ещё более поразительные. Этот доклад для вас, Groovy-разработчики, мы покажем вам настоящие, большие и красивые подводные камни! И для вас, Java-разработчики, потому что таких вещей на Java-подобном синтакисе вы точно никогда не видели! И для вас, PHP-разработчики… хотя, нет, не для вас :)
Всем точно будет весело — ваши ведущие Женя и Барух будут зажигать, шутить, спорить, бросаться футболками в публику, и самое главное — заставят вас офигевать от Groovy.
A helper to make the life of Wordpress developers easier.
This helper can be used to quickly register Custom Post Types, Taxonomies, Meta Boxes, Menu Pages and Sidebars within your Wordpress projects. Please comment, review, watch, fork and report bugs.
Observances of UN International Women's Day 2011
The Universal Peace Federation upholds the essential value and central role of women in peacebuilding and human development.
UPF affirms the need for women to serve in leadership positions throughout the world in all sectors of society.
UPF recognizes the equal value of men and women. Their absolute value derives from a common origin, God. God is the origin of both men and women, and all of God’s creation manifests complementary masculine and feminine aspects.
Men and women are extensions and manifestations of God’s harmonious masculinity and femininity. The complementary relationship between men and women expresses the wholeness of human experience. Thus, there should be no gender discrimination but rather harmony of the sexes through love.
Throughout history, women have taken the leading role in cultivating families as the dwelling places of peace, love, and health in shaping the individual character of children, and in fostering harmonious social relationships. In the family, both father and mother are equally entitled to reverence and honor. The path toward establishing global peace begins with strengthening families.
The ideal of peace is at the core of all religions. Through dialogue and mutual understanding, there can be peace among religions, and peace among religions is a necessary prerequisite for world peace. Women can and should play a central role in promoting interfaith understanding and cooperation.
UPF emphasizes the essential importance of women in addressing issues of peace and development in all sectors, including politics, business, culture, and religion. Women must be encouraged and empowered to assume leadership roles in the resolution of conflict, peacebuilding, and sustainable development.
UPF supports the achievement of the United Nations' Millennium Development Goals, which include improved status, education, health, and physical well-being of women. Six of these eight goals are related to women; therefore, by uplifting the condition of women, the Millennium Development Goals will be advanced.
The basics of Python are rather straightforward. In a few minutes you can learn most of the syntax. There are some gotchas along the way that might appear tricky. This talk is meant to bring programmers up to speed with Python. They should be able to read and write Python.
Python's "batteries included" philosophy means that it comes with an astonishing amount of great stuff. On top of that, there's a vibrant world of third-party libraries that help make Python even more wonderful. We'll go on a breezy, example-filled tour through some of my favorites, from treasures in the standard library to great third-party packages that I don't think I could live without, and we'll touch on some of the fuzzier aspects of the Python culture that make it such a joy to be part of.
A tour of Python: slides from presentation given in 2012.
[Some slides are not properly rendered in SlideShare: the original is still available at http://www.aleksa.org/2015/04/python-presentation_7.html.]
Python 101++: Let's Get Down to Business!Paige Bailey
You've started the Codecademy and Coursera courses; you've thumbed through Zed Shaw's "Learn Python the Hard Way"; and now you're itching to see what Python can help you do. This is the workshop for you!
Here's the breakdown: we're going to be taking you on a whirlwind tour of Python's capabilities. By the end of the workshop, you should be able to easily follow any of the widely available Python courses on the internet, and have a grasp on some of the more complex aspects of the language.
Please don't forget to bring your personal laptop!
Audience: This course is aimed at those who already have some basic programming experience, either in Python or in another high level programming language (such as C/C++, Fortran, Java, Ruby, Perl, or Visual Basic). If you're an absolute beginner -- new to Python, and new to programming in general -- make sure to check out the "Python 101" workshop!
The Vanishing Pattern: from iterators to generators in PythonOSCON Byrum
The core of the talk is refactoring a simple iterable class from the classic Iterator design pattern (as implemented in the GoF book) to compatible but less verbose implementations using generators. This provides a meaningful context to understand the value of generators. Along the way the behavior of the iter function, the Sequence protocol and the Iterable interface are presented. The motivating examples of this talk are database applications.
Highlights a bunch of different Python tricks and tips - from the stupid to the awesome (and a bit of both).
See how to register a 'str'.decode('hail_mary') codec, call_functions[1, 2, 3] instead of call_functions(1, 2, 3), creating a "Clojure-like" threading syntax by overloading the pipe operator, create useful equality mocks by overloading the equality operator, ditch JSON for pySON and put together a tiny lisp based on Norvig's awesome article.
جرمیابی قانونی دیجیتال (digital forensics) و یا پزشکی قانونی دیجیتال یکی از شاخههای مهم در زمینهٔ امنیت اطلاعات و امنیت سایبری است. در این ارایه به صورت مختصر به تعریف امنیت پرداخته خواهد شد و پس از آن مفاهیم اولیهٔ جرمشناسی رایانهای بیان میشود و ابزارهایی که جرمشناس با آنها سر و کار دارد معرفی میگرد. هدف از این ارایه آشنایی افراد با مفاهیم جرمیابی، روشهای استخراج داده و شناسایی تهدیدات در سیستمهای رایانهای است.
first Mashhad Software Talks
6-jan-2014
part0 of Python learning
--------------------------------------
Contents:
What is Python?
What can you do with Python?
Why should you learn Python?
How is Python used in the real world?
Which version? Python 2 or Python 3?
How to Start Programming in Python?
apendix:
A: Install
B: IDE
C: FrameWorks and etc!
D: simple Code
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
6. Who am I?
● Farhamg.Name
● Robocup Server 2D
● GNegar
● BadTag
● BlueWay
● UMS
● Xbuilder
● ...
7. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
8. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
15. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
21. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
35. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
44. MATH
$ python$ python
>>>>>> 0.1 + 0.20.1 + 0.2
0.300000000000000040.30000000000000004
You can check out the decimal module if you need more exact answers.
45. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
54. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
55. function
defdef add_numadd_num(x, y=1):(x, y=1):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
returnreturn x + yx + y
>>>>>> printprint add_num(2, 3)add_num(2, 3)
55
>>>>>> printprint add_num(2)add_num(2)
33
57. function
defdef add_numadd_num(x, y):(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
returnreturn zz
>>>>>> printprint add_num(2, 3)add_num(2, 3)
55
58. def
defdef add_num(x, y):add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
59. name
defdef add_numadd_num(x, y):(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
60. parameters
def add_numdef add_num(x, y)(x, y)::
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
61. : + indent
def add_num(x, y)def add_num(x, y)::
--------'''Get x, y and return:'''Get x, y and return:
-------- X + Y '''X + Y '''
--------z = x + yz = x + y
--------return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
62. documentation
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
63. body
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
64. return
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
returnreturn zz
>>> print add_num(2, 3)>>> print add_num(2, 3)
55
67. documentation
def add_num(x, y):def add_num(x, y):
'''Get x, y and return:'''Get x, y and return:
X + Y '''X + Y '''
z = x + yz = x + y
return zreturn z
>>>>>> helphelp(add_num)(add_num)
Help on function add_num in module __main__:Help on function add_num in module __main__:
add_num()add_num()
Get x,y and return:Get x,y and return:
X + YX + Y
(END)(END)
79. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
80. while
>>>>>>whilewhile b < 10:b < 10:
…… printprint bb
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
81. while
>>>>>>whilewhile b < 10:b < 10:
…… print bprint b
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
82. while
>>>while>>>while b < 10b < 10::
…… print bprint b
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
83. while
>>>while b < 10>>>while b < 10::
……--------print bprint b
……--------a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
84. while
>>>while b < 10:>>>while b < 10:
…… printprint bb
…… a, b = b, a+ba, b = b, a+b
……
11
11
22
33
55
88
85. while
>>>while b < 10:>>>while b < 10:
…… print bprint b
…… a,a, b =b = b,b, a+ba+b
……
11
11
22
33
55
88
91. if-else
>>>>>>ifif b >= 10:b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
92. if-else
>>>if>>>if b >= 10b >= 10::
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
93. if-else
>>>if b >= 10>>>if b >= 10::
……--------print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
……--------print 'small'print 'small'
…… else:else:
……--------print '9'print '9'
94. if-else
>>>if b >= 10:>>>if b >= 10:
…… printprint 'big''big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
95. if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elifelif b =< 8:b =< 8:
…… printprint 'small''small'
…… else:else:
…… print '9'print '9'
96. if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elifelif b =< 8:b =< 8:
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
97. if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elifelif b =< 8b =< 8::
…… print 'small'print 'small'
…… else:else:
…… print '9'print '9'
98. if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… printprint 'small''small'
…… else:else:
…… print '9'print '9'
99. if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… elseelse::
…… printprint '9''9'
100. if-else
>>>if b >= 10:>>>if b >= 10:
…… print 'big'print 'big'
…… elif b =< 8:elif b =< 8:
…… print 'small'print 'small'
…… elseelse::
…… print '9'print '9'
101. for
>>>>>> forfor nn inin [2, 3, 4, 5, 6, 7, 8, 9]:[2, 3, 4, 5, 6, 7, 8, 9]:
…… forfor xx inin rangerange(2, n):(2, n):
…… ifif n % x == 0:n % x == 0:
...... printprint nn
...... breakbreak
...... elseelse::
...... printprint n,n, 'is a prime''is a prime'
102. for
>>>>>> forfor n in [2, 3, 4, 5, 6, 7, 8, 9]:n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
103. for
>>> for>>> for nn in [2, 3, 4, 5, 6, 7, 8, 9]:in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
104. for
>>> for n>>> for n inin [2, 3, 4, 5, 6, 7, 8, 9]:[2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
105. for
>>> for n in>>> for n in [2, 3, 4, 5, 6, 7, 8, 9][2, 3, 4, 5, 6, 7, 8, 9]::
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
106. for
>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… forfor xx inin rangerange(2, n):(2, n):
…… ifif n % x == 0:n % x == 0:
...... printprint nn
...... breakbreak
...... elseelse::
...... printprint n,n, 'is a prime''is a prime'
107. for
>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x infor x in rangerange(2, n)(2, n)::
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
108. for
>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:>>> for n in [2, 3, 4, 5, 6, 7, 8, 9]:
…… for x in range(2, n):for x in range(2, n):
…… if n % x == 0:if n % x == 0:
...... print nprint n
...... breakbreak
...... else:else:
...... print n, 'is a prime'print n, 'is a prime'
109. for
>>>>>> dict = {dict = { 'a''a':1 ,:1 , 'b''b'::'AB''AB',, 'c''c':[1,{}] }:[1,{}] }
>>>>>>forfor key, valkey, val inin dict.items()dict.items()::
…… printprint key, valkey, val
a 1a 1
b ABb AB
c [1,{}]c [1,{}]
110. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
120. Contents● What is Python?
● Hello world!
● RUN SCRIPTS!
● What is the object in Python?
● Python like as calculator!
● String and other types in Python!
● Function & Classes!
● Repeat the decision in Program!
● I/O files ;D
● HEEEEEEEEEEEEEEEEEEEEEELP!
124. trace
●● h - helph - help
●● s - step intos - step into
●● n - nextn - next
●● c - continuec - continue
●● w - where am I (in stack)?w - where am I (in stack)?
●● l - list code around mel - list code around me
125. trace
hh - help- help
ss - step into- step into
nn - next- next
cc - continue- continue
ww - where am I (in stack)?- where am I (in stack)?
ll - list code around me- list code around me