The document discusses dictionaries in Python. It explains that dictionaries consist of keys and values, with keys typically represented as strings. It provides examples of creating dictionaries and performing common dictionary operations like printing values, deleting keys/values, printing keys, and adding new key-value pairs. The document also discusses using dictionaries with loops and lists, including an example of a list containing multiple dictionaries.
1 Create Python Lists
2 Mutable Lists
3 Traverse a List
4 Slice a List
5 Insert Into a List
6 Append to a List
7 Sort a List
8 Reverse a List
9 Index of an element
10 Delete an Element
11 Aggregate Functions
12 Compare Lists
13 Math Operations On Lists
14 Lists and Strings
15 Join a List
16 Aliasing
Have you ever needed to do arithmetic on every element of a list? Perform complicated list analysis not available in the existing list transformers? Come take a technical look at 3 methods for manipulating lists in FME, their ease of setup and relative efficiency.
1 Create Python Lists
2 Mutable Lists
3 Traverse a List
4 Slice a List
5 Insert Into a List
6 Append to a List
7 Sort a List
8 Reverse a List
9 Index of an element
10 Delete an Element
11 Aggregate Functions
12 Compare Lists
13 Math Operations On Lists
14 Lists and Strings
15 Join a List
16 Aliasing
Have you ever needed to do arithmetic on every element of a list? Perform complicated list analysis not available in the existing list transformers? Come take a technical look at 3 methods for manipulating lists in FME, their ease of setup and relative efficiency.
This presentation is a part of the COP2271C college level course taught at the Florida Polytechnic University located in Lakeland Florida. The purpose of this course is to introduce Freshmen students to both the process of software development and to the Python language.
The course is one semester in length and meets for 2 hours twice a week. The Instructor is Dr. Jim Anderson.
A video of Dr. Anderson using these slides is available on YouTube at:
https://www.youtube.com/watch?v=AOchqjVB_1o
http://youtu.be/4EaTej-aH0M
This presentation is a part of the COP2271C college level course taught at the Florida Polytechnic University located in Lakeland Florida. The purpose of this course is to introduce Freshmen students to both the process of software development and to the Python language.
The course is one semester in length and meets for 2 hours twice a week. The Instructor is Dr. Jim Anderson.
A video of Dr. Anderson using these slides is available on YouTube at:
http://youtu.be/1KYqw70gk5M
This presentation is a part of the COP2271C college level course taught at the Florida Polytechnic University located in Lakeland Florida. The purpose of this course is to introduce Freshmen students to both the process of software development and to the Python language.
The course is one semester in length and meets for 2 hours twice a week. The Instructor is Dr. Jim Anderson.
A video of Dr. Anderson using these slides is available on YouTube at:
https://www.youtube.com/watch?v=AOchqjVB_1o
http://youtu.be/4EaTej-aH0M
This presentation is a part of the COP2271C college level course taught at the Florida Polytechnic University located in Lakeland Florida. The purpose of this course is to introduce Freshmen students to both the process of software development and to the Python language.
The course is one semester in length and meets for 2 hours twice a week. The Instructor is Dr. Jim Anderson.
A video of Dr. Anderson using these slides is available on YouTube at:
http://youtu.be/1KYqw70gk5M
this document consists of the introduction to python, how to install and run it, arithmetic operations, values and types (dictionaries, lists, tuples, strings, numbers, etc.) and the formal language and natural language
In Python, data types define the type of data that can be stored and manipulated in variables. Python is a dynamically typed language, meaning you don't need to explicitly declare the data type of a variable; Python infers it based on the value assigned to the variable.
A MAC URISA event. This talk is oriented to GIS users looking to learn more about the Python programming language. The Python language is incorporated into many GIS applications. Python also has a considerable installation base, with many freely available modules that help developers extend their software to do more.
The beginning third of the talk discusses the history and syntax of the language, along with why a GIS specialist would want to learn how to use the language. The middle of the talk discusses how Python is integrated with the ESRI ArcGIS Desktop suite. The final portion of the talk discusses two Python projects and how they can be used to extend your GIS capabilities and improve efficiency.
Recording of the talk: https://www.youtube.com/watch?v=F1_FqvbXHb4
This is the third presentation in pySIG 2015 @ BMS College of Engineering, Bangalore. The code and assignments can be found at https://github.com/pranavsb
LESSON 3B. FOCUS: FOR LOOPS, NESTED LOOPS, TASKS AND CHALLENGES.
Introduction to, with examples, For loops. Challenges and tasks included with solutions (predict the output). Compare ‘while’ and ‘for’ loops. Use the break statement and explore how it works in different scenarios. Learn about Nested Loops. Learn about the need for initialisation (set starting value). Create your own for loops. Create the beginnings of an arithmetic quiz using a random function and for loops. Big ideas discussion: Is the universe digital. A program? Introducing Gottfried Leibniz and Konrad Zuse. Includes a suggested videos, ‘Big ideas’ discussion, and HW/research projects section.
Getting started in Python presentation by Laban KGDSCKYAMBOGO
Python Overview and getting started in Python Language. It includes on how to install, run it and carrying out some simple python codes in different environments(IDLEs)
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Francesca Gottschalk - How can education support child empowerment.pptxEduSkills OECD
Francesca Gottschalk from the OECD’s Centre for Educational Research and Innovation presents at the Ask an Expert Webinar: How can education support child empowerment?
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
2. • A dictionary consists of two things (a) keys (b) values
Dictionaries in python
3. • A dictionary consists of two things (a) keys (b) values
• Use strings to represent keys
Dictionaries in python
4. • A dictionary consists of two things (a) keys (b) values
• Use strings to represent keys
• Values can be anything
Dictionaries in python
5. • A dictionary consists of two things (a) keys (b) values
• Use strings to represent keys
• Values can be anything
• There are many ways to create a dictionary, we will look at one way
to do it:
Dictionaries in python
6. • A dictionary consists of two things (a) keys (b) values
• Use strings to represent keys
• Values can be anything
Dictionaries in python
7. Print the entire dictionary
• Print(my_dict)
• Please inspect the format in which it is printed.
• Where do the : symbols show up?
8. • Print(my_dict)
• Please inspect the format in which it is printed.
• Where do the colon (:) symbols show up?
• Where do the commas (,) show up?
Print the entire dictionary
9. • Create a dictionary, where the keys are one, two and the
corresponding values are 1 and 2
Exercise
10. • Create a dictionary, where the keys are one, two and the
corresponding values are 1 and 2
• Create a dictionary, where the keys are aiclub, PA1, M1 and the
corresponding values are website, python class, AI class.
Exercise
12. • Print values of the first dictionary you created
• Print value corresponding to the key one
• Print value corresponding to the key two
Exercise
13. • Print values of the first dictionary you created
• Print value corresponding to the key one
• Print value corresponding to the key two
• Print values of the second dictionary you created
• Print value corresponding to the key aiclub
• Print value corresponding to the key M1
• Print value corresponding to the key PA1
Exercise
15. • Delete and print values of new dictionaries
• For the first dictionary
• Delete the value corresponding to the key one
• Print the value of dictionary
• For the second dictionary
• Delete the value corresponding to the key aiclub
• Print the value of dictionary
Exercise
16. Dictionaries in python
• Print a value in a dictionary
• Delete a value in a dictionary
• Print all keys of a dictionary
17. • Instead of printing the entire dictionary, please print only the keys of
the two dictionaries you created
Exercise
18. Dictionaries in python
• Print a value in a dictionary
• Delete a value in a dictionary
• Print all keys of a dictionary
• Add values to a dictionary
19. • Add the keys that you deleted from the 2 dictionaries back
• Print the two dictionaries
Exercise
20. loops and dictionaries – use together
• Loops - recap
• The for loop is of the following form.
• The range indicates the number of times a statement will be implemented.
• There is a colon value to indicate the start of for loop.
• The code below is executed many times. The number of times it gets executed
depends on the values specified in range.
• Note that the code below the for statement is indented.
21. Loops - recap
• The for loop is of the following form.
• Try different values inside the brackets of range
• Note that everything with indentation below for loop is executed as a
part of the loop.
22. • Exercise
a) Create a random number in the limits 0 and 10 using a random number
generator
Loops and Dictionaries
23. • Exercise
a) Create a random number in the limits 0 and 10 using a random number
generator
b) Create a list of length 10 using the random number generator (pick any
limits) – please use a loop
Loops and Dictionaries
24. Loops and Dictionaries
• Exercise
a) Create a random number in the limits 0 and 10 using a random number
generator
b) Create a list of length 10 using the random number generator (pick any
limits) – please use a loop
c) Now create a dictionary using the values of the list as keys and the
corresponding values for each key can be another random number (pick
any limits).
25. • A list holds ordered collection of items.
• And item can be a string or a number
Lists - recap
26. Lists - recap
• A list holds ordered collection of items.
• And item can be a string or a number
• An item can be a dictionary too
27. • Create a dictionary dict_1 with keys one, two, three and values 1, 2
and 3
• Create a dictionary dict_2 with keys one, two and three and values I,
II, III
List of dictionaries - Exercise
28. • Create a dictionary dict_1 with keys one, two, three and values 1, 2
and 3
• Create a dictionary dict_2 with keys one, two and three and values I,
II, III
• Create a list with these two dictionaries: list_dict = [dict_1, dict_2]
List of dictionaries - Exercise
29. • Create a dictionary dict_1 with keys one, two, three and values 1, 2
and 3
• Create a dictionary dict_2 with keys one, two and three and values I,
II, III
• Create a list with these two dictionaries: list_dict = [dict_1, dict_2]
• Print the value corresponding to the key one of first dictionary dict_1
from the list list_dict
List of dictionaries - Exercise
30. • Create a dictionary dict_1 with keys one, two, three and values 1, 2
and 3
• Create a dictionary dict_2 with keys one, two and three and values I,
II, III
• Create a list with these two dictionaries: list_dict = [dict_1, dict_2]
• Print the value corresponding to the key one of first dictionary dict_1
from the list list_dict
• Print the value corresponding to the key one of second dictionary
dict_2 from the list list_dict
List of dictionaries - Exercise