Python- Creating Dictionary,
Accessing and Modifying key: value Pairs in Dictionaries
Built-In Functions used on Dictionaries,
Dictionary Methods
Removing items from dictionary
The document discusses functions in Python. It describes built-in functions like input(), print(), and eval(). It also discusses user-defined functions, including defining functions with parameters, return values, and different scopes. Functions can take arbitrary arguments and keyword arguments. Additionally, the document discusses calling functions from the command line and passing arguments.
This document discusses control flow statements and loops in Python programming. It covers decision control statements like if, if-else and if-elif-else and loops like for and while loops. It provides examples of using these statements to make decisions and iterate over sequences. It also discusses concepts like break, continue and pass statements used to control program flow. The document concludes with some lab assignments involving applying control flow statements and loops to solve problems.
The document discusses various parts of the Python programming language including keywords, variables, operators, data types, and more. It provides examples and explanations of concepts like:
- Keywords are reserved words with specific uses like False, None, True, and, or, etc.
- Variables store values in reserved memory locations and can be of different data types like integers, floats, strings.
- Python supports common operators for arithmetic, comparison, logical, bitwise and other operations.
- Core data types include numbers, strings, lists, tuples, and dictionaries.
- Other concepts covered are indentation, comments, input/output functions, type conversions.
Python programming: Anonymous functions, String operationsMegha V
The document discusses anonymous or lambda functions in Python. Some key points:
- Lambda functions are anonymous functions defined using the lambda keyword. They can take any number of arguments but return only one expression.
- Lambda functions have limited functionality compared to regular functions as they cannot contain multiple expressions or statements.
- Lambda functions are commonly used along with built-in functions like map(), filter() and reduce() to perform operations on lists.
This document provides an introduction to algorithm analysis and design. It defines what an algorithm is and lists some key properties it should have like being unambiguous, having a finite number of steps, and terminating. It discusses different ways to specify algorithms using natural language, flowcharts, or pseudocode. It also covers analyzing algorithm efficiency in terms of time and space complexity and introduces common asymptotic notations used like Big O, Big Omega, and Big Theta notation.
Learn how to use lists in Java, how to use List<T> and ArrayList<T>, how to process lists of elements.
Watch the video lesson and access the hands-on exercises here: https://softuni.org/code-lessons/java-foundations-certification-lists
The document discusses Python regular expressions (RegEx). It covers importing the re module, using common RegEx functions like search(), findall(), split(), and sub(). It also covers RegEx patterns like metacharacters, special sequences, and match objects. Named groups are introduced as a way to make RegEx matches more readable by labeling parts of the pattern instead of using numbers.
The document provides an introduction and comparison of Python and C programming languages. Some key points:
- Python is an interpreted language while C needs compilation. Python makes program development faster.
- Variables, input/output, arrays, control structures like if/else, for loops work differently in Python compared to C.
- Python uses lists instead of arrays. Lists are mutable and support slicing.
- Strings are treated as character lists in Python.
- Functions are defined using def keyword in Python.
- The document also introduces sequences (strings, tuples, lists), dictionaries, and sets in Python - their usage and operations.
Java Foundations: Maps, Lambda and Stream APISvetlin Nakov
Learn how to work with maps in Java, how to use the Map<K, V> interface and the API classes HashMap<K,V> and TreeMap<K, V>. Learn how to work with lambda expressions and how to use the Java stream API to process sequences of elements, how to filter, transform and order sequences.
Watch the video lesson and access the hands-on exercises here: https://softuni.org/code-lessons/java-foundations-certification-maps-lambda-and-stream-api/
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.
The document discusses different types of loops in Python including while loops, for loops, infinite loops, breaking and continuing loops. It provides examples of using while and for loops to iterate through lists and calculate values like sums, maximums, and minimums. Various loop patterns are demonstrated including counting, summing, and finding the max/min values from lists.
Python lambda functions with filter, map & reduce functionARVIND PANDE
Lambda functions allow the creation of small anonymous functions and can be passed as arguments to other functions. The map() function applies a lambda function to each element of a list and returns a new list. The filter() function filters a list based on the return value of a lambda function. The reduce() function iteratively applies a lambda function to consecutive pairs in a list and returns a single value. User-defined functions in Python can perform tasks like converting between temperature scales, finding max/min/average of lists, generating Fibonacci series, reversing strings, summing digits in numbers, and calculating powers using recursion.
Learn how to use arrays in Java, how to enter array, how to traverse an array, how to print array and more array operations.
Watch the video lesson and access the hands-on exercises here: https://softuni.org/code-lessons/java-foundations-certification-arrays
The document discusses various string manipulation techniques in Python such as getting the length of a string, traversing strings using loops, slicing strings, immutable nature of strings, using the 'in' operator to check for substrings, and comparing strings. Key string manipulation techniques covered include getting the length of a string using len(), extracting characters using indexes and slices, traversing strings with for and while loops, checking for substrings with the 'in' operator, and comparing strings.
Team Emertxe's document provides an overview of functions in C, including:
1. Functions allow code reuse, modularity, and abstraction. They define an activity with inputs, operations, and outputs.
2. Functions are defined with a return type, name, and parameters. They are called by name with arguments. Functions can return values or ignore returned values.
3. Parameters can be passed by value or by reference. Pass by reference allows changing the original argument. Arrays can be passed to functions.
4. Recursive functions call themselves to break down problems. Function pointers allow functions to be called indirectly. Variadic functions accept variable arguments.
5. Common pitfalls include
The Ring programming language version 1.3 book - Part 13 of 88Mahmoud Samir Fayed
This document provides information about functions in the Ring programming language. It discusses how to define functions, call functions, declare parameters, send parameters to functions, use the main function, handle variable scope, return values from functions, and create recursive functions. It also covers using multiple source code files in a project by loading files, and the typical sections that may be included in a source code file.
- Python is an interpreted, object-oriented programming language that is beginner friendly and open source. It was created in the 1990s and named after Monty Python.
- Python is very suitable for natural language processing tasks due to its built-in string and list datatypes as well as libraries like NLTK. It also has strong numeric processing capabilities useful for machine learning.
- Python code is organized using functions, classes, modules, and packages to improve structure. It is interpreted at runtime rather than requiring a separate compilation step.
1. Classes allow the creation of user-defined data types through the grouping of related data members and member functions.
2. Class members can be declared as private, public or protected and determine accessibility outside the class.
3. Methods are defined similarly to regular functions but can access any member of the class without passing them as parameters.
The document discusses arrays and motivates their use. It explains that arrays allow storing a large number of values in a program and accessing them through indices. Arrays solve the problem of having to declare many individual variables to store multiple values. The document then introduces the concept of arrays, how to declare and initialize array variables, and how to access elements within an array using indices. It provides examples of declaring, initializing, and accessing one-dimensional and two-dimensional arrays.
This document provides an overview of key concepts in programming and Python. It defines terms like code, syntax, output, console, compiling, interpreting, and variables. It explains Python as an interpreted language and shows examples of printing output, taking user input, performing calculations with numbers and math commands, using variables, and basic control structures like if/else and loops. It also covers data types like integers, floats, strings, lists, and how to modify and format them.
In this chapter we will review how to work with text files in C#. We will explain what a stream is, what its purpose is, and how to use it. We will explain what a text file is and how can you read and write data to a text file and how to deal with different character encodings. We will demonstrate and explain the good practices for exception handling when working with files. All of this will be demonstrated with many examples in this chapter
This document provides an introduction to Python including:
- The major versions of Python and their differences
- Popular integrated development environments for Python
- How to set up Python environments using Anaconda and Eclipse
- An overview of Python basics like variables, numbers, strings, lists, dictionaries, modules and functions
- Examples of Python control flow structures like conditionals and loops
The Ring programming language version 1.4.1 book - Part 29 of 31Mahmoud Samir Fayed
This document provides documentation for Ring version 1.4.1. It discusses why list indexes start at 1 in Ring rather than 0 as in some other languages. It also covers topics like constructors, what happens when an object is created, using getter and setter methods, and including multiple source files in a project. Various code examples are provided to illustrate concepts around classes, objects, functions, and other Ring features.
Chapter 22. Lambda Expressions and LINQIntro C# Book
In this chapter we will become acquainted with some of the advanced capabilities of the C# language. To be more specific, we will pay attention on how to make queries to collections, using lambda expressions and LINQ, and how to add functionality to already created classes, using extension methods. We will get to know the anonymous types, describe their usage briefly and discuss lambda expressions and show in practice how most of the built-in lambda functions work. Afterwards, we will pay more attention to the LINQ syntax – we will learn what it is, how it works and what queries we can build with it. In the end, we will get to know the meaning of the keywords in LINQ, and demonstrate their capabilities with lots of examples.
The document discusses defining and using methods in Java. It defines what a method is and its key components like the method signature, return type, parameters, and body. It then demonstrates a sample max method to return the maximum of two numbers and traces the steps of invoking the method from the main method, including passing arguments, executing the method body, and returning the result. The document aims to explain the basics of methods in Java, including how to define reusable methods and invoke them to perform certain tasks.
This document discusses modules in Python for accessing SQL databases. It notes that there are Python modules that allow accessing many common databases like MySQL, PostgreSQL, SQLite, and MongoDB. While there may be multiple module options for a given database, most conform to the Python Database API Specification, making the code look very similar regardless of database or module choice. The specification defines connecting to a database, committing/rolling back transactions, getting a cursor object, and executing queries and fetching results.
Numerical tour in the Python eco-system: Python, NumPy, scikit-learnArnaud Joly
We first present the Python programming language and the NumPy package for scientific computing. Then, we devise a digit recognition system highlighting the scikit-learn package.
The document provides an introduction and comparison of Python and C programming languages. Some key points:
- Python is an interpreted language while C needs compilation. Python makes program development faster.
- Variables, input/output, arrays, control structures like if/else, for loops work differently in Python compared to C.
- Python uses lists instead of arrays. Lists are mutable and support slicing.
- Strings are treated as character lists in Python.
- Functions are defined using def keyword in Python.
- The document also introduces sequences (strings, tuples, lists), dictionaries, and sets in Python - their usage and operations.
Java Foundations: Maps, Lambda and Stream APISvetlin Nakov
Learn how to work with maps in Java, how to use the Map<K, V> interface and the API classes HashMap<K,V> and TreeMap<K, V>. Learn how to work with lambda expressions and how to use the Java stream API to process sequences of elements, how to filter, transform and order sequences.
Watch the video lesson and access the hands-on exercises here: https://softuni.org/code-lessons/java-foundations-certification-maps-lambda-and-stream-api/
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.
The document discusses different types of loops in Python including while loops, for loops, infinite loops, breaking and continuing loops. It provides examples of using while and for loops to iterate through lists and calculate values like sums, maximums, and minimums. Various loop patterns are demonstrated including counting, summing, and finding the max/min values from lists.
Python lambda functions with filter, map & reduce functionARVIND PANDE
Lambda functions allow the creation of small anonymous functions and can be passed as arguments to other functions. The map() function applies a lambda function to each element of a list and returns a new list. The filter() function filters a list based on the return value of a lambda function. The reduce() function iteratively applies a lambda function to consecutive pairs in a list and returns a single value. User-defined functions in Python can perform tasks like converting between temperature scales, finding max/min/average of lists, generating Fibonacci series, reversing strings, summing digits in numbers, and calculating powers using recursion.
Learn how to use arrays in Java, how to enter array, how to traverse an array, how to print array and more array operations.
Watch the video lesson and access the hands-on exercises here: https://softuni.org/code-lessons/java-foundations-certification-arrays
The document discusses various string manipulation techniques in Python such as getting the length of a string, traversing strings using loops, slicing strings, immutable nature of strings, using the 'in' operator to check for substrings, and comparing strings. Key string manipulation techniques covered include getting the length of a string using len(), extracting characters using indexes and slices, traversing strings with for and while loops, checking for substrings with the 'in' operator, and comparing strings.
Team Emertxe's document provides an overview of functions in C, including:
1. Functions allow code reuse, modularity, and abstraction. They define an activity with inputs, operations, and outputs.
2. Functions are defined with a return type, name, and parameters. They are called by name with arguments. Functions can return values or ignore returned values.
3. Parameters can be passed by value or by reference. Pass by reference allows changing the original argument. Arrays can be passed to functions.
4. Recursive functions call themselves to break down problems. Function pointers allow functions to be called indirectly. Variadic functions accept variable arguments.
5. Common pitfalls include
The Ring programming language version 1.3 book - Part 13 of 88Mahmoud Samir Fayed
This document provides information about functions in the Ring programming language. It discusses how to define functions, call functions, declare parameters, send parameters to functions, use the main function, handle variable scope, return values from functions, and create recursive functions. It also covers using multiple source code files in a project by loading files, and the typical sections that may be included in a source code file.
- Python is an interpreted, object-oriented programming language that is beginner friendly and open source. It was created in the 1990s and named after Monty Python.
- Python is very suitable for natural language processing tasks due to its built-in string and list datatypes as well as libraries like NLTK. It also has strong numeric processing capabilities useful for machine learning.
- Python code is organized using functions, classes, modules, and packages to improve structure. It is interpreted at runtime rather than requiring a separate compilation step.
1. Classes allow the creation of user-defined data types through the grouping of related data members and member functions.
2. Class members can be declared as private, public or protected and determine accessibility outside the class.
3. Methods are defined similarly to regular functions but can access any member of the class without passing them as parameters.
The document discusses arrays and motivates their use. It explains that arrays allow storing a large number of values in a program and accessing them through indices. Arrays solve the problem of having to declare many individual variables to store multiple values. The document then introduces the concept of arrays, how to declare and initialize array variables, and how to access elements within an array using indices. It provides examples of declaring, initializing, and accessing one-dimensional and two-dimensional arrays.
This document provides an overview of key concepts in programming and Python. It defines terms like code, syntax, output, console, compiling, interpreting, and variables. It explains Python as an interpreted language and shows examples of printing output, taking user input, performing calculations with numbers and math commands, using variables, and basic control structures like if/else and loops. It also covers data types like integers, floats, strings, lists, and how to modify and format them.
In this chapter we will review how to work with text files in C#. We will explain what a stream is, what its purpose is, and how to use it. We will explain what a text file is and how can you read and write data to a text file and how to deal with different character encodings. We will demonstrate and explain the good practices for exception handling when working with files. All of this will be demonstrated with many examples in this chapter
This document provides an introduction to Python including:
- The major versions of Python and their differences
- Popular integrated development environments for Python
- How to set up Python environments using Anaconda and Eclipse
- An overview of Python basics like variables, numbers, strings, lists, dictionaries, modules and functions
- Examples of Python control flow structures like conditionals and loops
The Ring programming language version 1.4.1 book - Part 29 of 31Mahmoud Samir Fayed
This document provides documentation for Ring version 1.4.1. It discusses why list indexes start at 1 in Ring rather than 0 as in some other languages. It also covers topics like constructors, what happens when an object is created, using getter and setter methods, and including multiple source files in a project. Various code examples are provided to illustrate concepts around classes, objects, functions, and other Ring features.
Chapter 22. Lambda Expressions and LINQIntro C# Book
In this chapter we will become acquainted with some of the advanced capabilities of the C# language. To be more specific, we will pay attention on how to make queries to collections, using lambda expressions and LINQ, and how to add functionality to already created classes, using extension methods. We will get to know the anonymous types, describe their usage briefly and discuss lambda expressions and show in practice how most of the built-in lambda functions work. Afterwards, we will pay more attention to the LINQ syntax – we will learn what it is, how it works and what queries we can build with it. In the end, we will get to know the meaning of the keywords in LINQ, and demonstrate their capabilities with lots of examples.
The document discusses defining and using methods in Java. It defines what a method is and its key components like the method signature, return type, parameters, and body. It then demonstrates a sample max method to return the maximum of two numbers and traces the steps of invoking the method from the main method, including passing arguments, executing the method body, and returning the result. The document aims to explain the basics of methods in Java, including how to define reusable methods and invoke them to perform certain tasks.
This document discusses modules in Python for accessing SQL databases. It notes that there are Python modules that allow accessing many common databases like MySQL, PostgreSQL, SQLite, and MongoDB. While there may be multiple module options for a given database, most conform to the Python Database API Specification, making the code look very similar regardless of database or module choice. The specification defines connecting to a database, committing/rolling back transactions, getting a cursor object, and executing queries and fetching results.
Numerical tour in the Python eco-system: Python, NumPy, scikit-learnArnaud Joly
We first present the Python programming language and the NumPy package for scientific computing. Then, we devise a digit recognition system highlighting the scikit-learn package.
This document discusses dictionaries in Python. It defines dictionaries as unordered collections of key-value pairs that are indexed by keys rather than integers. It covers how to create, access, modify, traverse, and delete dictionary elements as well as built-in functions like len(), keys(), values(), items(), get(), update(), pop(), and more. Examples are provided to demonstrate counting character frequencies in a string and storing employee names and salaries in a dictionary.
This document provides information about dictionaries in Python:
1. It defines a dictionary as an unordered collection of items where each item consists of a key and a value. Dictionaries are mutable but keys must be unique and immutable.
2. It explains how to create a dictionary by enclosing items in curly braces with keys and values separated by colons, and how to access values using the get() method or indexing with keys.
3. It discusses various ways to iterate through a dictionary using a for loop, update and modify dictionary elements, and delete elements using del, pop(), and clear().
4. It also covers built-in dictionary functions like len(), str(), type(), and various
The document discusses Python dictionaries. Some key points:
- A dictionary in Python is an unordered collection of key-value pairs where keys must be unique and immutable, while values can be any data type.
- Dictionaries are created using curly braces {} and keys are separated from values with colons.
- Elements can be accessed, added, updated, and deleted using keys. Nested dictionaries are also supported.
- Common operations include creating, accessing, modifying dictionaries as well as nested dictionaries. User input can also be used to update dictionary values.
Here is a program to create a dictionary storing employee names and salaries and access them:
```python
# Create a dictionary to store employee data
employees = {}
# Add employee data to the dictionary
employees['e1'] = {'name': 'John', 'salary': 25000}
employees['e2'] = {'name': 'Steve', 'salary': 28000}
employees['e3'] = {'name': 'Mary', 'salary': 27000}
# Print dictionary
print(employees)
# Access employee data by key
print(employees['e1'])
# Print salary of 'Steve'
print(employees['e2']['salary'])
#
A dictionary in Python is an unordered collection of key-value pairs where keys must be unique and immutable. It allows storing and accessing data values using keys. Keys can be of any immutable data type while values can be of any data type. Dictionaries can be created using curly braces {} or the dict() constructor and elements can be added, accessed, updated, or removed using keys. Common dictionary methods include copy(), clear(), pop(), get(), keys(), items(), and update().
This document summarizes tuples and dictionaries in Python. Tuples are immutable sequences that are defined using round brackets. They can contain heterogeneous elements and support operations like indexing, slicing, and iteration. Dictionaries allow storing elements with non-integer keys and accessing them via indexing. They are mutable and support operations like adding/deleting elements and various functions. The next lecture will involve practicing with tuples and dictionaries.
The document discusses various functions and methods for dictionaries in Python. It covers getting the length of a dictionary with len(), accessing items with get(), items(), keys(), and values(). Methods are presented for creating dictionaries from keys with fromkeys(), extending dictionaries with setdefault() and update(), calculating max, min, sum, copying dictionaries, deleting elements with del, pop(), popitem(), clear(), and sorting keys with sorted().
Dictionaries in Python are used to store data in key-value pairs. They are unordered, changeable and do not allow duplicates. A dictionary can be created using curly braces {} and contains keys and their corresponding values separated by colon. Sets are another data type that can store multiple elements but do not allow duplicates. Sets are created using curly braces and support operations like union, intersection etc. Both dictionaries and sets support various methods to add, remove and manipulate elements.
The document discusses hard computing and soft computing. Hard computing uses precise mathematical models and algorithms, while soft computing uses techniques like neural networks and genetic algorithms to handle imprecise or complex problems. Soft computing is needed to solve real-world problems that involve uncertainty, incomplete information, noise, and non-linearity. It can provide approximate solutions and mimic human-like reasoning. The document then provides examples of applications of soft computing in various domains like image processing, automotive systems, bioinformatics, and power systems analysis.
The document discusses JavaScript statements, functions, arrays, and objects. It provides examples of JavaScript code and explains key concepts like:
- JavaScript statements are separated by semicolons and can span multiple lines.
- Functions are blocks of code that perform tasks and can accept parameters and return values.
- Arrays are special variables that can hold multiple values accessed by index.
- Objects store properties and methods, with properties being name-value pairs that can be accessed directly or via methods.
JavaScript is a scripting language used for client-side and server-side web development. It is a dynamically typed language that is easy to code in and supports features like DOM manipulation, events, functions, and objects. JavaScript can be added to HTML documents in internal <script> tags or externally linked .js files and is used for everything from simple form validation to complex single-page applications.
The document discusses Python exception handling. It describes three types of errors in Python: compile time errors (syntax errors), runtime errors (exceptions), and logical errors. It explains how to handle exceptions using try, except, and finally blocks. Common built-in exceptions like ZeroDivisionError and NameError are also covered. The document concludes with user-defined exceptions and logging exceptions.
The document discusses file handling in Python. It explains that a file is used to permanently store data in non-volatile memory. It describes opening, reading, writing, and closing files. It discusses opening files in different modes like read, write, append. It also explains attributes of file objects like name, closed, and mode. The document also covers reading and writing text and binary files, pickle module for serialization, and working with CSV files and the os.path module.
Python programming -Tuple and Set Data typeMegha V
This document discusses tuples, sets, and frozensets in Python. It provides examples and explanations of:
- The basic properties and usage of tuples, including indexing, slicing, and built-in functions like len() and tuple().
- How to create sets using braces {}, that sets contain unique elements only, and built-in functions for sets like len(), max(), min(), union(), intersection(), etc.
- Frozensets are immutable sets that can be used as dictionary keys, and support set operations but not mutable methods like add() or remove().
Python is a general purpose, dynamic, high-level and interpreted programming language. It is used widely in data science, machine learning, web development, automation and more. Python was created in the 1990s by Guido van Rossum to be an interpreted language that bridged the gap between C and shell scripting. It has many advantages like being readable, cross-platform, having a large standard library and being open source.
The document discusses Strassen's algorithm for matrix multiplication. It begins by explaining traditional matrix multiplication that has a time complexity of O(n3). It then explains how the divide and conquer strategy can be applied by dividing the matrices into smaller square sub-matrices. Strassen improved upon this by reducing the number of multiplications from 8 to 7 terms, obtaining a time complexity of O(n2.81). His key insight was applying different equations on the sub-matrix multiplication formulas to minimize operations.
The document discusses various methods for analyzing algorithms, including analyzing running time complexity and rate of growth. It covers asymptotic notations like Big O, Big Omega, and Big Theta notation for describing upper bounds, lower bounds, and tight bounds of an algorithm's running time. Various time complexities like constant, logarithmic, linear, quadratic, and exponential are provided with examples. The analysis of different algorithm control structures like loops, nested loops, if-else statements, and switches are also discussed.
The document discusses computer memory structures and data storage units. It begins by defining basic memory units like bits, bytes and words. It then explains progressively larger units of data storage from kilobytes to yottabytes. The document also covers number systems, specifically decimal and binary. It provides examples of converting between binary, decimal and decimal fraction numbers. Conversions include binary to decimal, decimal to binary, and binary fraction to decimal fraction.
The document discusses OpenGL ES, a lightweight version of OpenGL designed for embedded systems like mobile phones. It provides an introduction to OpenGL ES, describing its features which include removing redundancy from OpenGL to optimize it for constrained devices. The document outlines the differences between OpenGL and OpenGL ES, and describes the various versions of OpenGL ES from 1.0 to 3.2. It also discusses OpenGL ES fundamentals like its state machine-based model, and basic GL operations like rasterization and datatypes.
This document provides a summary of a final project presentation on automating the Community Development Society (CDS) of Kudumbasree in Alakode Panchayat, Kannur district, Kerala. The existing manual CDS system has drawbacks like being time-consuming and requiring a lot of paperwork. The proposed automated system would overcome these limitations by making CDS management and tasks like searching activities and profiles easier through a website. The presentation describes the requirements, design, and functions of the proposed automated CDS system to reduce effort and paper work for Kudumbasree users in the Panchayat.
Gi-Fi or Gigabit Wireless is a next generation wireless technology that allows data transfer speeds up to 5 gigabits per second within a 10 meter range. It uses 60GHz frequency and has advantages over existing technologies like Bluetooth and Wi-Fi in providing higher speeds, lower power consumption, and operating at higher frequencies. Gi-Fi has applications in wireless transfer of audio/video data for household appliances, office equipment, and inter-vehicle communication. It is expected to become the dominant wireless technology within five years.
The document discusses several digital initiatives in higher education in India developed by the Ministry of Human Resource Development (MHRD). These include the National Mission on Education through ICT which aims to improve access to quality education through digital solutions. Key initiatives mentioned are SWAYAM for MOOCs, Swayam Prabha DTH channels, the National Digital Library, National Academic Depository, e-Shodh Sindhu for access to journals and e-books, Virtual Labs, e-Yantra for robotics education, broadband connectivity for universities, and Talk to a Teacher/Ask a Question platforms for interacting with IIT faculty. The initiatives aim to leverage technology to improve access, quality and learning outcomes in higher
Information and Communication Technology (ICT) abbreviationMegha V
This document provides definitions for common abbreviations used in information and communication technology (ICT) and computing. It includes expansions for abbreviations related to hardware components, file formats, networking protocols, and some common email abbreviations. Terms defined include CPU, RAM, ROM, USB, IP address, HTML, HTTP, WiFi, PDF, and more. The document serves as a reference for technical terminology abbreviations.
The document provides information on basics of internet, intranet, email, audio and video conferencing. It defines internet as a worldwide network of interconnected computer networks that transmit data. An intranet is a private network within an organization that uses internet protocols. Email consists of a header with sender/recipient fields and a message body. Audio and video conferencing allow real-time communication over the internet.
Information and communication technology(ict)Megha V
The document provides an overview of information and communication technology (ICT). It discusses the meaning and advantages of ICT, as well as some common abbreviations and terminology. The document then covers basics of the internet, intranet, email, and audio/video conferencing. It also mentions some digital initiatives in higher education and the role of ICT in governance. The document is authored by Megha V, a research scholar at Kannur University.
Different pricelists for different shops in odoo Point of Sale in Odoo 17Celine George
Price lists are a useful tool for managing the costs of your goods and services. This can assist you in working with other businesses effectively and maximizing your revenues. Additionally, you can provide your customers discounts by using price lists.
HOW YOU DOIN'?
Cool, cool, cool...
Because that's what she said after THE QUIZ CLUB OF PSGCAS' TV SHOW quiz.
Grab your popcorn and be seated.
QM: THARUN S A
BCom Accounting and Finance (2023-26)
THE QUIZ CLUB OF PSGCAS.
How to Create a Rainbow Man Effect in Odoo 18Celine George
In Odoo 18, the Rainbow Man animation adds a playful and motivating touch to task completion. This cheerful effect appears after specific user actions, like marking a CRM opportunity as won. It’s designed to enhance user experience by making routine tasks more engaging.
RE-LIVE THE EUPHORIA!!!!
The Quiz club of PSGCAS brings to you a fun-filled breezy general quiz set from numismatics to sports to pop culture.
Re-live the Euphoria!!!
QM: Eiraiezhil R K,
BA Economics (2022-25),
The Quiz club of PSGCAS
Unit- 4 Biostatistics & Research Methodology.pdfKRUTIKA CHANNE
Blocking and confounding (when a third variable, or confounder, influences both the exposure and the outcome) system for Two-level factorials (a type of experimental design where each factor (independent variable) is investigated at only two levels, typically denoted as "high" and "low" or "+1" and "-1")
Regression modeling (statistical model that estimates the relationship between one dependent variable and one or more independent variables using a line): Hypothesis testing in Simple and Multiple regression models
Introduction to Practical components of Industrial and Clinical Trials Problems: Statistical Analysis Using Excel, SPSS, MINITAB®️, DESIGN OF EXPERIMENTS, R - Online Statistical Software to Industrial and Clinical trial approach
How to Manage & Create a New Department in Odoo 18 EmployeeCeline George
In Odoo 18's Employee module, organizing your workforce into departments enhances management and reporting efficiency. Departments are a crucial organizational unit within the Employee module.
How to Manage Maintenance Request in Odoo 18Celine George
Efficient maintenance management is crucial for keeping equipment and work centers running smoothly in any business. Odoo 18 provides a Maintenance module that helps track, schedule, and manage maintenance requests efficiently.
Parenting Teens: Supporting Trust, resilience and independencePooky Knightsmith
For more information about my speaking and training work, visit: https://www.pookyknightsmith.com/speaking/
SESSION OVERVIEW:
Parenting Teens: Supporting Trust, Resilience & Independence
The teenage years bring new challenges—for teens and for you. In this practical session, we’ll explore how to support your teen through emotional ups and downs, growing independence, and the pressures of school and social life.
You’ll gain insights into the teenage brain and why boundary-pushing is part of healthy development, along with tools to keep communication open, build trust, and support emotional resilience. Expect honest ideas, relatable examples, and space to connect with other parents.
By the end of this session, you will:
• Understand how teenage brain development affects behaviour and emotions
• Learn ways to keep communication open and supportive
• Explore tools to help your teen manage stress and bounce back from setbacks
• Reflect on how to encourage independence while staying connected
• Discover simple strategies to support emotional wellbeing
• Share experiences and ideas with other parents
This presentation has been made keeping in mind the students of undergraduate and postgraduate level. To keep the facts in a natural form and to display the material in more detail, the help of various books, websites and online medium has been taken. Whatever medium the material or facts have been taken from, an attempt has been made by the presenter to give their reference at the end.
In the seventh century, the rule of Sindh state was in the hands of Rai dynasty. We know the names of five kings of this dynasty- Rai Divji, Rai Singhras, Rai Sahasi, Rai Sihras II and Rai Sahasi II. During the time of Rai Sihras II, Nimruz of Persia attacked Sindh and killed him. After the return of the Persians, Rai Sahasi II became the king. After killing him, one of his Brahmin ministers named Chach took over the throne. He married the widow of Rai Sahasi and became the ruler of entire Sindh by suppressing the rebellions of the governors.
How to Manage Upselling of Subscriptions in Odoo 18Celine George
Subscriptions in Odoo 18 are designed to auto-renew indefinitely, ensuring continuous service for customers. However, businesses often need flexibility to adjust pricing or quantities based on evolving customer needs.
Exploring Ocean Floor Features for Middle SchoolMarie
This 16 slide science reader is all about ocean floor features. It was made to use with middle school students.
You can download the PDF at thehomeschooldaily.com
Thanks! Marie
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecdrazelitouali
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
2. Dictionary
• Creating Dictionary,
• Accessing and Modifying key : value Pairs in Dictionaries
• Built-In Functions used on Dictionaries,
• Dictionary Methods
• Removing items from dictonary
16-11-2021 [email protected] 2
3. Dictionary
• Unordered collection of key-value pairs
• Defined within braces {}
• Values can be accessed and assigned using square braces []
• Keys are usually numbers or strings
• Values can be any arbitrary Python object
16-11-2021 [email protected] 3
4. Dictionary
Creating a dictionary and accessing element from dictionary
Example:
dict={}
dict[‘one’]=“This is one”
dict[2]=“This is two”
tinydict={‘name’:’jogn’,’code’:6734,’dept’:’sales’}
studentdict={‘name’:’john’,’marks’:[35,80,90]}
print(dict[‘one’]) #This is one
print(dict[2]) #This is two
print(tinydict) #{name’:’john’,’code’:6734,’dept’:’sales’}
print(tinydict.keys())#dict_keys([’name’,’code’,’dept’])
print(tinydict.value())#dict_values([’john’,6734,’sales’])
print(studentdict) #{name’:’john’,’marks’:[35,80,90])
16-11-2021 [email protected] 4
5. Dictionary
• We can update a dictionary by adding a new key-value pair or modifying an existing entry
Example:
dict1={‘Name’:’Tom’,’Age’:20,’Height’:160}
print(dict1)
dictl[‘Age’]=25 #updating existing value in Key-Value pair
print ("Dictionary after update:",dictl)
dictl['Weight’]=60 #Adding new Key-value pair
print (" Dictionary after adding new Key-value pair:",dictl)
Output
{'Age':20,'Name':'Tom','Height':160}
Dictionary after update: {'Age’:25,'Name':'Tom','Height': 160)
Dictionary after adding new Key-value pair:
{'Age’:25,'Name':'Tom',' Weight':60,'Height':160}
16-11-2021 [email protected] 5
6. Dictionary
• We can delete the entire dictionary elements or individual elements in a dictionary.
• We can use del statement to delete the dictionary completely.
• To remove entire elements of a dictionary, we can use the clear() method
Example Program
dictl={'Name':'Tom','Age':20,'Height':160}
print(dictl)
del dictl['Age’] #deleting Key-value pair'Age':20
print ("Dictionary after deletion:",dictl)
dictl.clear() #Clearing entire dictionary
print(dictl)
Output
{'Age': 20, 'Name':'Tom','Height': 160}
Dictionary after deletion: {‘Nme ':' Tom','Height': 160}
{}
16-11-2021 [email protected] 6
7. Properties of Dictionary Keys
• More than one entry per key is not allowed.
• No duplicate key is allowed.
• When duplicate keys are encountered during assignment, the
last assignment is taken.
• Keys are immutable- keys can be numbers, strings or
tuple.
• It does not permit mutable objects like lists.
16-11-2021 [email protected] 7
8. Built-In Dictionary Functions
1.len(dict) - Gives the length of the dictionary.
Example Program
dict1= {'Name':'Tom','Age':20,'Height':160}
print(dict1)
print("Length of Dictionary=",len(dict1))
Output
{'Age': 20, 'Name': 'Tom', 'Height': 160}
Length of Dictionary= 3
16-11-2021 [email protected] 8
9. Built-In Dictionary Functions
2.str(dict) - Produces a printable string representation of the dictionary.
Example Program
dict1= {'Name':'Tom','Age':20,'Height' :160}
print(dict1)
print("Representation of Dictionary=",str(dict1))
Output
{'Age': 20, 'Name': 'Tom', 'Height': 160}
Representation of Dictionary= {'Age': 20, 'Name': 'Tom', 'Height': 160}
16-11-2021 [email protected] 9
10. Built-In Dictionary Functions
3.type(variable)
• The method type() returns the type of the passed variable.
• If passed variable is dictionary then it would return a dictionary type.
• This function can be applied to any variable type like number, string,
list, tuple etc.
16-11-2021 [email protected] 10
12. Built-in Dictionary Methods
1.dict.clear() - Removes all elements of dictionary dict.
Example Program
dict1={'Name':'Tom','Age':20,'Height':160}
print(dict1)
dict1.clear()
print(dict1)
Output
{'Age': 20, 'Name':' Tom’ ,'Height': 160}
{}
16-11-2021 [email protected] 12
13. 2.dict.copy() - Returns a copy of the dictionary dict().
3.dict.keys() - Returns a list of keys in dictionary dict
- The values of the keys will be displayed in a random order.
- In order to retrieve keys in sorted order, we can use the sorted() function.
- But for using the sorted() function, all the key should of the same type.
4. dict.values() -This method returns list of all values available in a dictionary
-The values will be displayed in a random order.
- In order to retrieve the values in sorted order, we can use the sorted()
function.
- But for using the sorted() function, all the values should of the same type
16-11-2021 [email protected] 13
Built-in Dictionary Methods
14. Built-in Dictionary Methods
5. dict.items() - Returns a list of dictionary dict's(key,value) tuple pairs.
dict1={'Name':'Tom','Age':20,'Height’:160}
print(dict1)
print("Items in Dictionary:",dict1.items())
Output
{'Age': 20, 'Name': 'Tom', 'Height': 160}
tems in Dictionary:[('Age', 20),( ' Name ' ,'Tom’), ('Height', 160)]
16-11-2021 [email protected] 14
16. Built-in Dictionary Methods
7. dict.has_key(key) – Returns true if the key is present in the dictionary, else False
is returned
8. dict.get(key,default=None) – Returns the value corresponding to the key
specified and if the key is not present, it returns the default value
9. dict.setdefault(key,default=None) – Similar to dict.get() byt it will set the key
with the value passed and if the key is not present it will set with default value
10. dict.fromkeys(seq,[val]) – Creates a new dictionary from sequence ‘seq’ and
values from ‘val’
16-11-2021 [email protected] 16
17. Removing Items from a Dictionary
• The pop() method removes the item with the specified key name.
thisdict={"brand":"Ford","model":"Mustang","year":1964}
thisdict.pop("model")
print(thisdict)
• The popitem() method removes the last inserted item (in versions before 3.7, a random item
is removed instead):
thisdict = {"brand":"Ford","model":"Mustang","year":1964}
thisdict.popitem()
print(thisdict)
16-11-2021 [email protected] 17
18. Removing Items from a Dictionary
• The del keyword removes the item with the specified key name:
thisdict={"brand":"Ford","model":"Mustang","year":1964}
del thisdict["model"]
print(thisdict)
• The del keyword can also delete the dictionary completely:
thisdict={"brand":"Ford","model":"Mustang","year":1964}
del thisdict
print(thisdict) #this will cause an error because "thisdict“ no
#longer exists.
• The clear() keyword empties the dictionary
thisdict.clear()
16-11-2021 [email protected] 18
19. LAB ASSIGNMENT
• Write a Python program to sort(ascending and descending) a dictionary by
value
• Write python script to add key-value pair to dictionary
• Write a Python script to merge two dictionaries
16-11-2021 [email protected] 19