The document discusses dictionaries in Python. It explains that a dictionary consists of keys and values, with keys usually represented as strings. It provides examples of creating dictionaries and accessing values using keys. It also discusses using loops to iterate through dictionaries and lists of dictionaries. Exercises are provided to create dictionaries with random values, retrieve values using keys, add/delete key-value pairs, and print keys and values.
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.
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
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
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
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.
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)
LESSON 3B. FOCUS: FOR LOOPS, NESTED LOOPS, TASKS AND CHALLENGES.
Introduction to, with examples, For loops. Challenges and tasks included with solutions (predict the output). Compare ‘while’ and ‘for’ loops. Use the break statement and explore how it works in different scenarios. Learn about Nested Loops. Learn about the need for initialisation (set starting value). Create your own for loops. Create the beginnings of an arithmetic quiz using a random function and for loops. Big ideas discussion: Is the universe digital. A program? Introducing Gottfried Leibniz and Konrad Zuse. Includes a suggested videos, ‘Big ideas’ discussion, and HW/research projects section.
this document 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
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
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.
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)
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.
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.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
3. Dictionaries in python
• A dictionary consists of two things (a) keys (b) values
• Use strings to represent keys
4. Dictionaries in python
• A dictionary consists of two things (a) keys (b) values
• Use strings to represent keys
• Values can be anything
5. Dictionaries in python
• 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:
6. Dictionaries in python
• A dictionary consists of two things (a) keys (b) values
• Use strings to represent keys
• Values can be anything
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 the entire dictionary
• 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?
9. Exercise
• Create a dictionary, where the keys are one, two and the
corresponding values are 1 and 2
10. Exercise
• 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.
12. Exercise
• Print values of the first dictionary you created
• Print value corresponding to the key one
• Print value corresponding to the key two
13. Exercise
• 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
15. Exercise
• 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
16. Dictionaries in python
• Print a value in a dictionary
• Delete a value in a dictionary
• Print all keys of a dictionary
17. Exercise
• Instead of printing the entire dictionary, please print only the keys of
the two dictionaries you created
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. Exercise
• Add the keys that you deleted from the 2 dictionaries back
• Print the two dictionaries
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. Loops and Dictionaries
• Exercise
a) Create a random number in the limits 0 and 10 using a random number
generator
23. 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
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. Lists - recap
• A list holds ordered collection of items.
• And item can be a string or a number
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. List of dictionaries - Exercise
• Create a dictionary dict_1 with keys one, two, three and values 1, 2
and 3
28. List of dictionaries - Exercise
• 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
29. List of dictionaries - Exercise
• 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]
30. List of dictionaries - Exercise
• 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
31. List of dictionaries - Exercise
• 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