This document provides an overview of key concepts in Python including:
- Python is an interpreted, interactive, object-oriented programming language suitable for cloud computing.
- It discusses Python data types like numbers, strings, lists, tuples, and dictionaries.
- Control flow statements like if/else, for, while, break, continue and functions are explained with examples.
- Core Python concepts such as modules, packages, file I/O and classes are outlined.
BUILDING IoT WITH ARDUINO &RASPBERRY PI
Building IOT with Arduino- Building IOT with RASPERRY PI- IoT Systems - Logical Design
using Python – IoT Physical Devices & Endpoints - IoT Device -Building blocks - Pi - Raspberry
Pi Interfaces - Case study:Smart Home & Smart Industry.
This document summarizes key concepts about the Python programming language covered in Chapter 6 of the book "IoT Systems – Logical Design using Python". It discusses Python's characteristics as a multi-paradigm, interpreted, and interactive language. It also covers Python data types including numbers, strings, lists, tuples and dictionaries. Additionally, it demonstrates Python control flow using if statements and provides examples of type conversions. The document aims to introduce readers to Python concepts through examples for designing IoT systems using the programming language.
This document summarizes key concepts about Python from the book "Internet of Things - Logical Design using Python" by Bahga and Madisetti. It covers Python data types like numbers, strings, lists, tuples, and dictionaries. It also discusses Python control flow statements such as if/else, for, while, break, continue and pass. Finally, it provides examples of type conversions and using Python for IoT systems design and development.
Programming RPi for IoT Applications.pdfrakeshk213994
This document provides an overview and agenda for a presentation on programming the Raspberry Pi (RPi) for Internet of Things (IoT) applications using Python. The agenda includes basics of Python, RPi basics, and RPi coding. Motivations for using Python with IoT systems are its intuitive syntax, portability, extensive library support, and ability to meet end-to-end development needs for tasks like capturing sensor data, web services, and analytics. Python code examples demonstrate numbers, strings, lists, tuples, dictionaries, and control flow statements. Setup instructions for Python on Windows and Linux are also included.
Python and Oracle : allies for best of data managementLaurent Leturgez
In this presentation, I described Python and how Python can Interact with Oracle database, and Oracle Cloud Infrastructure in various project : from data visualisation to data science.
File Handling Btech computer science and engineering pptpinuadarsh04
Data is very important. Every organization depends on its data for continuing its business operations. If the data is lost, the organization has to be closed. To store data in a computer, we need files. For example, we can store employee data like employee number, name and salary in a file in the computer and later use it whenever we want.
Similarly, we can store student data like student roll number, name and marks in the computer. In computers’ view, a file is nothing but collection of data that is available to a program. Once we store data in a computer file, we can retrieve it and use it depending on our requirements.
This is the reason computers are primarily created for handling data, especially for storing and retrieving data. In later days, programs are developed to process the data that is stored in the computer.
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the 1990s by Guido van Rossum. Python is an interpreted language that is free, powerful, and portable. It can be used for tasks like web development, data analysis, and system scripting. The document provides an overview of Python including its history, uses, data types like strings and lists, and basic programming concepts like variables, conditionals, and loops. It recommends Python as a principal teaching language due to its free and easy installation, flexibility, use in academia and industry, and ability to offer a more rapid and enjoyable learning experience for students.
BUILDING IoT WITH ARDUINO &RASPBERRY PI
Building IOT with Arduino- Building IOT with RASPERRY PI- IoT Systems - Logical Design
using Python – IoT Physical Devices & Endpoints - IoT Device -Building blocks - Pi - Raspberry
Pi Interfaces - Case study:Smart Home & Smart Industry.
This document summarizes key concepts about the Python programming language covered in Chapter 6 of the book "IoT Systems – Logical Design using Python". It discusses Python's characteristics as a multi-paradigm, interpreted, and interactive language. It also covers Python data types including numbers, strings, lists, tuples and dictionaries. Additionally, it demonstrates Python control flow using if statements and provides examples of type conversions. The document aims to introduce readers to Python concepts through examples for designing IoT systems using the programming language.
This document summarizes key concepts about Python from the book "Internet of Things - Logical Design using Python" by Bahga and Madisetti. It covers Python data types like numbers, strings, lists, tuples, and dictionaries. It also discusses Python control flow statements such as if/else, for, while, break, continue and pass. Finally, it provides examples of type conversions and using Python for IoT systems design and development.
Programming RPi for IoT Applications.pdfrakeshk213994
This document provides an overview and agenda for a presentation on programming the Raspberry Pi (RPi) for Internet of Things (IoT) applications using Python. The agenda includes basics of Python, RPi basics, and RPi coding. Motivations for using Python with IoT systems are its intuitive syntax, portability, extensive library support, and ability to meet end-to-end development needs for tasks like capturing sensor data, web services, and analytics. Python code examples demonstrate numbers, strings, lists, tuples, dictionaries, and control flow statements. Setup instructions for Python on Windows and Linux are also included.
Python and Oracle : allies for best of data managementLaurent Leturgez
In this presentation, I described Python and how Python can Interact with Oracle database, and Oracle Cloud Infrastructure in various project : from data visualisation to data science.
File Handling Btech computer science and engineering pptpinuadarsh04
Data is very important. Every organization depends on its data for continuing its business operations. If the data is lost, the organization has to be closed. To store data in a computer, we need files. For example, we can store employee data like employee number, name and salary in a file in the computer and later use it whenever we want.
Similarly, we can store student data like student roll number, name and marks in the computer. In computers’ view, a file is nothing but collection of data that is available to a program. Once we store data in a computer file, we can retrieve it and use it depending on our requirements.
This is the reason computers are primarily created for handling data, especially for storing and retrieving data. In later days, programs are developed to process the data that is stored in the computer.
Python is a general purpose programming language that can be used for both programming and scripting. It was created in the 1990s by Guido van Rossum. Python is an interpreted language that is free, powerful, and portable. It can be used for tasks like web development, data analysis, and system scripting. The document provides an overview of Python including its history, uses, data types like strings and lists, and basic programming concepts like variables, conditionals, and loops. It recommends Python as a principal teaching language due to its free and easy installation, flexibility, use in academia and industry, and ability to offer a more rapid and enjoyable learning experience for students.
This document provides an introduction to the Python programming language. It discusses why Python is easy to learn, relatively fast, object-oriented, strongly typed, widely used and portable. It then provides instructions on getting started with Python on Mac, including how to start the Python interpreter and run a simple "Hello World" program. It also demonstrates using the Python interpreter interactively to test code. The document explains the basic Python object types of numbers, strings, lists, tuples, dictionaries and files. It introduces the concepts of literals, variables and the import command. It provides examples of using command line arguments in Python programs.
Python is an easy to learn, object-oriented programming language that is widely used for scientific computing. It allows interactive testing of code through its interpreter interface. A user's first Python program prints "hello, world!" by saving a line of text with the .py extension and running it with the Python interpreter. Python defines six basic object types - numbers, strings, lists, tuples, dictionaries, and files. Variables store references to objects, and objects can be written directly as literals or accessed via variables. Important Python packages must be imported before their functions can be used. Command line arguments provide a way to input information into programs.
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. It was created by Guido van Rossum in 1991 and named after the BBC show Monty Python's Flying Circus. Python is used for web development, data analysis, scientific computing, and more. It has a simple syntax and is highly readable. Key features of Python include object orientation, dynamic typing, automatic memory management, and a large standard library. Common uses of Python include data science, web development, education, systems administration, and more. Major companies that use Python include Google, Facebook, NASA, and Netflix.
This document provides an overview of Python for data science. It discusses key Python features like being an easy to read, flexible language suitable for both new and experienced programmers. It also covers fundamental Python libraries for data scientists like NumPy, SciPy, Pandas, and Scikit-Learn for tasks like numeric computing, machine learning, and data analysis. The document concludes with an introduction to Python's core concepts like variables, data types, operators, and control flow statements.
- The document discusses Python programming concepts such as data types, variables, operators, and syntax. It provides examples of Python code for variables, comments, strings, numbers, and more.
- Python is a popular programming language used for web development, software development, mathematics, and more. It runs on different platforms and has a simple, readable syntax.
- Key features of Python include dynamic typing, automatic memory management, and an intuitive syntax that uses indentation rather than brackets.
Python is a simple yet powerful programming language that can be used across many platforms. It has an elegant syntax that is easy to read and write. Key features of Python include being open source, object-oriented, and having automatic memory management. Python code is portable and Python has a large standard library and community. Common data types in Python include strings, lists, tuples, and dictionaries. Python also supports functions, conditional statements, loops, and defines operators for comparisons and arithmetic.
SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL
The document provides an introduction to Python programming. It discusses that Python is a high-level, interpreted, object-oriented, and general purpose programming language. It can be used for web development, scientific computing, desktop applications, and more. The document then covers Python basics like data types, variables, literals, operators, control flow statements, functions, modules and packages. It also discusses installing Python on Windows and writing the first Python program.
The document discusses reading and writing files in Python. It explains that files allow data to be persisted beyond a program's execution and are used to store data on storage devices like hard disks. The main steps for reading and writing files are to open the file, use it (read from or write to it), and close the file. It also provides examples of opening file streams in read and write modes, and using methods like read(), readline(), and write() to interact with files.
Python is a high-level, interpreted, interactive, and object-oriented scripting language. It can be used as both a scripting language and for object-oriented programming. Python code is automatically compiled to byte code and executed. It supports data types like numbers, strings, lists, tuples, dictionaries, booleans, and sets. Common operations include concatenation, slicing, repetition, indexing, and more. User input can be obtained using functions like input() and raw_input().
The Ring programming language version 1.10 book - Part 7 of 212Mahmoud Samir Fayed
The document summarizes the key features and capabilities of the Ring programming language. Some of the main features included are:
- Support for procedures, functions, recursion, object-oriented programming features like encapsulation and inheritance.
- First-class support for variables, lists, objects and functions. Lists and objects can be passed by reference.
- Built-in support for math, string, list, file processing and database functions.
- Ability to create graphical user interfaces, 2D games, embed the language in C/C++, and develop web applications.
- Support for packages, modules, reflection, exception handling and debugging tools.
- Aimed to have a simple and natural
The document discusses the Python programming language. It describes Python as a popular programming language created by Guido van Rossum in 1991. It is commonly used for web development, software development, mathematics, and system scripting. The document then provides further details on Python syntax, including how Python uses indentation to define scope rather than curly brackets, and how it supports variables, data types, comments, and global versus local variables. It also encourages practicing Python through examples in the command line and .py files.
This document discusses file handling in C/C++. It begins by defining a computer file and explaining why file handling is important in programming. It then outlines the five main steps for file handling in C++, which are to include header files, declare file stream variables, associate streams with files, perform read/write operations, and close files. Various C++ file stream functions like open(), close(), getline(), and >> and << operators are described. Code snippets are provided as examples to read from and write to text files, appending data to files, and getting all data from a file.
The document summarizes the internship training that Shivam Denge completed from July 5th to August 16th 2022 at iBase Technology. The 6-week online training covered topics like Python programming language features, variables, loops, data structures, Numpy, Tkinter, Turtle and MySQL database modules. Key aspects of Python like being an interpreted, object-oriented and cross-platform language were also highlighted.
Python is a programming language that allows users to write instructions for the computer to follow. There are multiple ways to run Python code, including through the terminal window by typing "python" or the name of a Python file, or using iPython notebooks which allow code to be run and formatted notes to be taken in a browser. Python code uses variables to store values of different data types like strings, integers, booleans, lists, and dictionaries. Users can write functions to reuse blocks of code and take input from the user or external files using libraries and conditionals.
The document describes an internship training in Python conducted over 6 weeks. It provides an introduction to Python, describing it as a general purpose programming language that can be used for various applications. It then discusses key Python features and concepts like variables, loops, data structures, modules like NumPy, Tkinter, Turtle and how to connect Python to MySQL databases. Code examples are provided to demonstrate basic usage of these features and modules.
Python is a popular programming language created in 1991 by Guido van Rossum. It can be used for web development, software development, mathematics, and system scripting. Python code can be executed immediately as it is written due to its interpreter system, allowing for quick prototyping. It works across different platforms and has a simple, English-like syntax. Common data types in Python include numeric, string, list, and tuple types.
Guido Van Rossum created the Python programming language in 1991. Some key facts about Python's history and creator include that Python was inspired by the ABC programming language and that Van Rossum named Python after the Monty Python comedy group. Python has grown tremendously over the years and is now a simple, general purpose, high-level programming language used widely for tasks like web development, data science, and artificial intelligence.
The document discusses various Python programming concepts including generator functions, list comprehensions, list processing features, and performance analysis using tools like timeit and memory_profiler. It provides examples of generator functions that produce sequences iteratively using yield instead of returning a list, and explores list comprehensions as a more concise way to create lists from expressions compared to traditional for loops. The document also demonstrates measuring the time and memory usage of functions to analyze performance differences between approaches.
This document discusses using biologically inspired machine learning techniques to categorize tumor types. It proposes applying genetic search, particle swarm optimization, and evolutionary search algorithms to a dataset with 18 attributes and 339 tumor instances to eliminate irrelevant features before classification. The results are evaluated using performance metrics and show biologically inspired models like multi-layer perceptron with optimization techniques can help medical experts efficiently predict and diagnose tumors.
The document discusses Python packages and frameworks for developing Internet of Things (IoT) applications and interacting with cloud services. It describes the Web Application Messaging Protocol (WAMP) for building IoT applications and provides Python code examples for interacting with Amazon Web Services (AWS) like EC2, S3, RDS, DynamoDB, and AutoScaling using the Boto library. It also discusses using Python for MapReduce programming, the Django web framework, and popular Python packages for JSON, XML, HTTP, email, NumPy, and machine learning.
This document provides an introduction to the Python programming language. It discusses why Python is easy to learn, relatively fast, object-oriented, strongly typed, widely used and portable. It then provides instructions on getting started with Python on Mac, including how to start the Python interpreter and run a simple "Hello World" program. It also demonstrates using the Python interpreter interactively to test code. The document explains the basic Python object types of numbers, strings, lists, tuples, dictionaries and files. It introduces the concepts of literals, variables and the import command. It provides examples of using command line arguments in Python programs.
Python is an easy to learn, object-oriented programming language that is widely used for scientific computing. It allows interactive testing of code through its interpreter interface. A user's first Python program prints "hello, world!" by saving a line of text with the .py extension and running it with the Python interpreter. Python defines six basic object types - numbers, strings, lists, tuples, dictionaries, and files. Variables store references to objects, and objects can be written directly as literals or accessed via variables. Important Python packages must be imported before their functions can be used. Command line arguments provide a way to input information into programs.
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. It was created by Guido van Rossum in 1991 and named after the BBC show Monty Python's Flying Circus. Python is used for web development, data analysis, scientific computing, and more. It has a simple syntax and is highly readable. Key features of Python include object orientation, dynamic typing, automatic memory management, and a large standard library. Common uses of Python include data science, web development, education, systems administration, and more. Major companies that use Python include Google, Facebook, NASA, and Netflix.
This document provides an overview of Python for data science. It discusses key Python features like being an easy to read, flexible language suitable for both new and experienced programmers. It also covers fundamental Python libraries for data scientists like NumPy, SciPy, Pandas, and Scikit-Learn for tasks like numeric computing, machine learning, and data analysis. The document concludes with an introduction to Python's core concepts like variables, data types, operators, and control flow statements.
- The document discusses Python programming concepts such as data types, variables, operators, and syntax. It provides examples of Python code for variables, comments, strings, numbers, and more.
- Python is a popular programming language used for web development, software development, mathematics, and more. It runs on different platforms and has a simple, readable syntax.
- Key features of Python include dynamic typing, automatic memory management, and an intuitive syntax that uses indentation rather than brackets.
Python is a simple yet powerful programming language that can be used across many platforms. It has an elegant syntax that is easy to read and write. Key features of Python include being open source, object-oriented, and having automatic memory management. Python code is portable and Python has a large standard library and community. Common data types in Python include strings, lists, tuples, and dictionaries. Python also supports functions, conditional statements, loops, and defines operators for comparisons and arithmetic.
SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL SAMCSCMLA SCACLSALS CS L LSLSL
The document provides an introduction to Python programming. It discusses that Python is a high-level, interpreted, object-oriented, and general purpose programming language. It can be used for web development, scientific computing, desktop applications, and more. The document then covers Python basics like data types, variables, literals, operators, control flow statements, functions, modules and packages. It also discusses installing Python on Windows and writing the first Python program.
The document discusses reading and writing files in Python. It explains that files allow data to be persisted beyond a program's execution and are used to store data on storage devices like hard disks. The main steps for reading and writing files are to open the file, use it (read from or write to it), and close the file. It also provides examples of opening file streams in read and write modes, and using methods like read(), readline(), and write() to interact with files.
Python is a high-level, interpreted, interactive, and object-oriented scripting language. It can be used as both a scripting language and for object-oriented programming. Python code is automatically compiled to byte code and executed. It supports data types like numbers, strings, lists, tuples, dictionaries, booleans, and sets. Common operations include concatenation, slicing, repetition, indexing, and more. User input can be obtained using functions like input() and raw_input().
The Ring programming language version 1.10 book - Part 7 of 212Mahmoud Samir Fayed
The document summarizes the key features and capabilities of the Ring programming language. Some of the main features included are:
- Support for procedures, functions, recursion, object-oriented programming features like encapsulation and inheritance.
- First-class support for variables, lists, objects and functions. Lists and objects can be passed by reference.
- Built-in support for math, string, list, file processing and database functions.
- Ability to create graphical user interfaces, 2D games, embed the language in C/C++, and develop web applications.
- Support for packages, modules, reflection, exception handling and debugging tools.
- Aimed to have a simple and natural
The document discusses the Python programming language. It describes Python as a popular programming language created by Guido van Rossum in 1991. It is commonly used for web development, software development, mathematics, and system scripting. The document then provides further details on Python syntax, including how Python uses indentation to define scope rather than curly brackets, and how it supports variables, data types, comments, and global versus local variables. It also encourages practicing Python through examples in the command line and .py files.
This document discusses file handling in C/C++. It begins by defining a computer file and explaining why file handling is important in programming. It then outlines the five main steps for file handling in C++, which are to include header files, declare file stream variables, associate streams with files, perform read/write operations, and close files. Various C++ file stream functions like open(), close(), getline(), and >> and << operators are described. Code snippets are provided as examples to read from and write to text files, appending data to files, and getting all data from a file.
The document summarizes the internship training that Shivam Denge completed from July 5th to August 16th 2022 at iBase Technology. The 6-week online training covered topics like Python programming language features, variables, loops, data structures, Numpy, Tkinter, Turtle and MySQL database modules. Key aspects of Python like being an interpreted, object-oriented and cross-platform language were also highlighted.
Python is a programming language that allows users to write instructions for the computer to follow. There are multiple ways to run Python code, including through the terminal window by typing "python" or the name of a Python file, or using iPython notebooks which allow code to be run and formatted notes to be taken in a browser. Python code uses variables to store values of different data types like strings, integers, booleans, lists, and dictionaries. Users can write functions to reuse blocks of code and take input from the user or external files using libraries and conditionals.
The document describes an internship training in Python conducted over 6 weeks. It provides an introduction to Python, describing it as a general purpose programming language that can be used for various applications. It then discusses key Python features and concepts like variables, loops, data structures, modules like NumPy, Tkinter, Turtle and how to connect Python to MySQL databases. Code examples are provided to demonstrate basic usage of these features and modules.
Python is a popular programming language created in 1991 by Guido van Rossum. It can be used for web development, software development, mathematics, and system scripting. Python code can be executed immediately as it is written due to its interpreter system, allowing for quick prototyping. It works across different platforms and has a simple, English-like syntax. Common data types in Python include numeric, string, list, and tuple types.
Guido Van Rossum created the Python programming language in 1991. Some key facts about Python's history and creator include that Python was inspired by the ABC programming language and that Van Rossum named Python after the Monty Python comedy group. Python has grown tremendously over the years and is now a simple, general purpose, high-level programming language used widely for tasks like web development, data science, and artificial intelligence.
The document discusses various Python programming concepts including generator functions, list comprehensions, list processing features, and performance analysis using tools like timeit and memory_profiler. It provides examples of generator functions that produce sequences iteratively using yield instead of returning a list, and explores list comprehensions as a more concise way to create lists from expressions compared to traditional for loops. The document also demonstrates measuring the time and memory usage of functions to analyze performance differences between approaches.
This document discusses using biologically inspired machine learning techniques to categorize tumor types. It proposes applying genetic search, particle swarm optimization, and evolutionary search algorithms to a dataset with 18 attributes and 339 tumor instances to eliminate irrelevant features before classification. The results are evaluated using performance metrics and show biologically inspired models like multi-layer perceptron with optimization techniques can help medical experts efficiently predict and diagnose tumors.
The document discusses Python packages and frameworks for developing Internet of Things (IoT) applications and interacting with cloud services. It describes the Web Application Messaging Protocol (WAMP) for building IoT applications and provides Python code examples for interacting with Amazon Web Services (AWS) like EC2, S3, RDS, DynamoDB, and AutoScaling using the Boto library. It also discusses using Python for MapReduce programming, the Django web framework, and popular Python packages for JSON, XML, HTTP, email, NumPy, and machine learning.
The document discusses IoT physical devices and endpoints. It defines an IoT device as a "thing" that can send and receive data over a network, with examples like smart home devices. The basic building blocks of an IoT device are described as sensing, actuation, communication, and analysis/processing. The Raspberry Pi is presented as an exemplary IoT device, being a small, low-cost computer that runs Linux and supports interfacing sensors and actuators through GPIO pins while running Python code. Other example devices mentioned include pcDuino, BeagleBone Black, and CubieBoard.
NETCONF and YANG provide standards for managing IoT systems. NETCONF allows retrieving and manipulating configuration data over SSH and uses XML RPCs. YANG defines the data models for configuration and state information. Together, NETCONF and YANG address the limitations of SNMP by providing a clear separation of configuration and state data, configuration transactions, and validation through a data modeling language.
This document discusses machine-to-machine (M2M) communication, the differences between M2M and the Internet of Things (IoT), and how software-defined networking (SDN) and network function virtualization (NFV) can be applied to IoT. It defines M2M as networking machines for remote monitoring, control and data exchange using local area networks with protocols like ZigBee or Bluetooth. While M2M uses proprietary or non-IP protocols locally, communication networks use IP. IoT focuses more on software and cloud-based data collection and applications, whereas M2M emphasizes hardware and on-premises solutions. SDN separates network control and data planes, allowing centralized programm
The document provides an introduction to IoT, including definitions, characteristics, physical and logical designs, communication protocols, and deployment models. It defines IoT as a global network of devices with sensing/actuation and communication capabilities. The physical components are "things" like sensors and devices. Logically, IoT systems use models like publish-subscribe and request-response. Deployment is classified into 6 levels based on the network topology and where data is stored and processed.
Thinking of getting a dog? Be aware that breeds like Pit Bulls, Rottweilers, and German Shepherds can be loyal and dangerous. Proper training and socialization are crucial to preventing aggressive behaviors. Ensure safety by understanding their needs and always supervising interactions. Stay safe, and enjoy your furry friends!
This slide is special for master students (MIBS & MIFB) in UUM. Also useful for readers who are interested in the topic of contemporary Islamic banking.
How to Fix the Import Error in the Odoo 17Celine George
An import error occurs when a program fails to import a module or library, disrupting its execution. In languages like Python, this issue arises when the specified module cannot be found or accessed, hindering the program's functionality. Resolving import errors is crucial for maintaining smooth software operation and uninterrupted development processes.
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
Main Java[All of the Base Concepts}.docxadhitya5119
This is part 1 of my Java Learning Journey. This Contains Custom methods, classes, constructors, packages, multithreading , try- catch block, finally block and more.
This presentation includes basic of PCOS their pathology and treatment and also Ayurveda correlation of PCOS and Ayurvedic line of treatment mentioned in classics.
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
Assessment and Planning in Educational technology.pptxKavitha Krishnan
In an education system, it is understood that assessment is only for the students, but on the other hand, the Assessment of teachers is also an important aspect of the education system that ensures teachers are providing high-quality instruction to students. The assessment process can be used to provide feedback and support for professional development, to inform decisions about teacher retention or promotion, or to evaluate teacher effectiveness for accountability purposes.
How to Manage Your Lost Opportunities in Odoo 17 CRMCeline George
Odoo 17 CRM allows us to track why we lose sales opportunities with "Lost Reasons." This helps analyze our sales process and identify areas for improvement. Here's how to configure lost reasons in Odoo 17 CRM
The simplified electron and muon model, Oscillating Spacetime: The Foundation...RitikBhardwaj56
Discover the Simplified Electron and Muon Model: A New Wave-Based Approach to Understanding Particles delves into a groundbreaking theory that presents electrons and muons as rotating soliton waves within oscillating spacetime. Geared towards students, researchers, and science buffs, this book breaks down complex ideas into simple explanations. It covers topics such as electron waves, temporal dynamics, and the implications of this model on particle physics. With clear illustrations and easy-to-follow explanations, readers will gain a new outlook on the universe's fundamental nature.
2. Outline
• Introduction to Python
• Installing Python
• Python data types and data structures
• Control flow
• Functions
• Modules
• Packages
• File input/output
• Date/Time operations
• Classes
3. Python
• Python is a general-purpose high-level programming language suitable for providing a solid
foundation to the reader in the area of cloud computing.
The main characteristics of Python are:
• Multi-paradigm programming language
• Python supports more than one programming paradigm, including object-oriented programming and structured
programming
• Interpreted language
• Python is an interpreted language and does not require an explicit compilation step. The Python interpreter
executes the program source code directly, statement by statement, as a processor or scripting engine does.
• Interactive language
• Python provides an interactive mode in which the user can submit commands at the Python prompt and interact
with the interpreter directly.
4. Python – Benefits
• Easy-to-learn, read and maintain
• Python is a minimalistic language with relatively few keywords, uses English keywords and has fewer syntactical constructions
as compared to other languages. Reading Python programs feels like reading English with pseudocode-like constructs. Python
is easy to learn yet an extremely powerful language for a wide range of applications.
• Object and procedure oriented
• Python supports both procedure-oriented programming and object-oriented programming. Procedure-oriented paradigm
allows programs to be written around procedures or functions that allow reuse of code. Object-oriented paradigm allows
programs to be written around objects that include both data and functionality.
• Extendable
• Python is an extendable language and allows integration of low-level modules written in languages such as C/C++. This is useful
when you want to speed up a critical portion of a program.
• Scalable
• Due to the minimalistic nature of Python, it provides a manageable structure for large programs.
• Portable
• Since Python is an interpreted language, programmers do not have to worry about compilation, linking and loading of
programs. Python programs can be directly executed from the source.
• Broad library support
• Python has broad library support and works on various platforms such as Windows, Linux, Mac, etc.
5. Python – Setup
• Windows
• Python binaries for Windows can be downloaded from http://www.python.org/getit
• For the examples and exercise in this book, you would require Python 2.7 which can be downloaded directly from
http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi
• Once the python binary is installed, you can run the python shell at the command prompt using
> python
• Linux
#Install Dependencies
sudo apt-get install build-essential
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
#Download Python
wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz
tar -xvf Python-2.7.5.tgz
cd Python-2.7.5
#Install Python
./configure
make
sudo make install
6. Numbers
• Numbers
• The number data type is used to store numeric values. Numbers are immutable data types, therefore changing the value of a number
data type results in a newly allocated object.
#Integer
>>>a=5
>>>type(a)
<type ’int’>
#Floating Point
>>>b=2.5
>>>type(b)
<type ’float’>
#Long
>>>x=9898878787676L
>>>type(x)
<type ’long’>
#Complex
>>>y=2+5j
>>>y
(2+5j)
>>>type(y)
<type ’complex’>
>>>y.real
2
>>>y.imag
5
#Addition
>>>c=a+b
>>>c
7.5
>>>type(c)
<type ’float’>
#Subtraction
>>>d=a-b
>>>d
2.5
>>>type(d)
<type ’float’>
#Multiplication
>>>e=a*b
>>>e
12.5
>>>type(e)
<type ’float’>
#Division
>>>f=b/a
>>>f
0.5
>>>type(f)
<type float’>
#Power
>>>g=a**2
>>>g
25
7. Strings
• Strings
• A string is simply a list of characters in order. There are no limits to the number of characters you can have in a string.
#Create string
>>>s="Hello World!"
>>>type(s)
<type ’str’>
#String concatenation
>>>t="This is sample program."
>>>r = s+t
>>>r
’Hello World!This is sample program.’
#Get length of string
>>>len(s)
12
#Convert string to integer
>>>x="100"
>>>type(s)
<type ’str’>
>>>y=int(x)
>>>y
100
#Print string
>>>print s
Hello World!
#Formatting output
>>>print "The string (The string (Hello World!) has
12 characters
#Convert to upper/lower case
>>>s.upper()
’HELLO WORLD!’
>>>s.lower()
’hello world!’
#Accessing sub-strings
>>>s[0]
’H’
>>>s[6:]
’World!’
>>>s[6:-1]
’World’
#strip: Returns a copy of the string with the
#leading and trailing characters removed.
>>>s.strip("!")
’Hello World’
8. Lists
• Lists
• A list is a compound data type used to group together other values. List items need not all be of the same type. A list contains items
separated by commas and enclosed within square brackets.
#Create List
>>>fruits=[’apple’,’orange’,’banana’,’mango’]
>>>type(fruits)
<type ’list’>
#Get Length of List
>>>len(fruits)
4
#Access List Elements
>>>fruits[1]
’orange’
>>>fruits[1:3]
[’orange’, ’banana’]
>>>fruits[1:]
[’orange’, ’banana’, ’mango’]
#Appending an item to a list
>>>fruits.append(’pear’)
>>>fruits
[’apple’, ’orange’, ’banana’, ’mango’, ’pear’]
#Removing an item from a list
>>>fruits.remove(’mango’)
>>>fruits
[’apple’, ’orange’, ’banana’, ’pear’]
#Inserting an item to a list
>>>fruits.insert(1,’mango’)
>>>fruits
[’apple’, ’mango’, ’orange’, ’banana’, ’pear’]
#Combining lists
>>>vegetables=[’potato’,’carrot’,’onion’,’beans’,’r
adish’]
>>>vegetables
[’potato’, ’carrot’, ’onion’, ’beans’, ’radish’]
>>>eatables=fruits+vegetables
>>>eatables
[’apple’, ’mango’, ’orange’, ’banana’, ’pear’,
’potato’, ’carrot’, ’onion’, ’beans’, ’radish’]
#Mixed data types in a list
>>>mixed=[’data’,5,100.1,8287398L]
>>>type(mixed)
<type ’list’>
>>>type(mixed[0])
<type ’str’>
>>>type(mixed[1])
<type ’int’>
>>>type(mixed[2])
<type ’float’>
>>>type(mixed[3])
<type ’long’>
#Change individual elements of a list
>>>mixed[0]=mixed[0]+" items"
>>>mixed[1]=mixed[1]+1
>>>mixed[2]=mixed[2]+0.05
>>>mixed
[’data items’, 6, 100.14999999999999, 8287398L]
#Lists can be nested
>>>nested=[fruits,vegetables]
>>>nested
[[’apple’, ’mango’, ’orange’, ’banana’, ’pear’], [’potato’,
’carrot’, ’onion’, ’beans’, ’radish’]]
9. Tuples
• Tuples
• A tuple is a sequence data type that is similar to the list. A tuple consists of a number of values separated by commas and enclosed
within parentheses. Unlike lists, the elements of tuples cannot be changed, so tuples can be thought of as read-only lists.
#Create a Tuple
>>>fruits=("apple","mango","banana","pineapple")
>>>fruits
(’apple’, ’mango’, ’banana’, ’pineapple’)
>>>type(fruits)
<type ’tuple’>
#Get length of tuple
>>>len(fruits)
4
#Get an element from a tuple
>>>fruits[0]
’apple’
>>>fruits[:2]
(’apple’, ’mango’)
#Combining tuples
>>>vegetables=(’potato’,’carrot’,’onion’,’radish’)
>>>eatables=fruits+vegetables
>>>eatables
(’apple’, ’mango’, ’banana’, ’pineapple’, ’potato’, ’carrot’, ’onion’, ’radish’)
10. Dictionaries
• Dictionaries
• Dictionary is a mapping data type or a kind of hash table that maps keys to values. Keys in a dictionary can be of any data type, though
numbers and strings are commonly used. The values in a dictionary can be any data type or object.
#Create a dictionary
>>>student={’name’:’Mary’,’id’:’8776’,’major’:’CS’}
>>>student
{’major’: ’CS’, ’name’: ’Mary’, ’id’: ’8776’}
>>>type(student)
<type ’dict’>
#Get length of a dictionary
>>>len(student)
3
#Get the value of a key in dictionary
>>>student[’name’]
’Mary’
#Get all items in a dictionary
>>>student.items()
[(’gender’, ’female’), (’major’, ’CS’), (’name’, ’Mary’),
(’id’, ’8776’)]
#Get all keys in a dictionary
>>>student.keys()
[’gender’, ’major’, ’name’, ’id’]
#Get all values in a dictionary
>>>student.values()
[’female’, ’CS’, ’Mary’, ’8776’]
#Add new key-value pair
>>>student[’gender’]=’female’
>>>student
{’gender’: ’female’, ’major’: ’CS’, ’name’: ’Mary’, ’id’:
’8776’}
#A value in a dictionary can be another dictionary
>>>student1={’name’:’David’,’id’:’9876’,’major’:’ECE’}
>>>students={’1’: student,’2’:student1}
>>>students
{’1’: {’gender’: ’female’, ’major’: ’CS’, ’name’: ’Mary’, ’id’:
’8776’}, ’2’: {’
major’: ’ECE’, ’name’: ’David’, ’id’: ’9876’}}
#Check if dictionary has a key
>>>student.has_key(’name’)
True
>>>student.has_key(’grade’)
False
11. Type Conversions
#Convert to string
>>>a=10000
>>>str(a)
’10000’
#Convert to int
>>>b="2013"
>>>int(b)
2013
#Convert to float
>>>float(b)
2013.0
#Convert to long
>>>long(b)
2013L
#Convert to list
>>>s="aeiou"
>>>list(s)
[’a’, ’e’, ’i’, ’o’, ’u’]
#Convert to set
>>>x=[’mango’,’apple’,’banana’,’mango’,’banana’]
>>>set(x)
set([’mango’, ’apple’, ’banana’])
• Type conversion examples
12. Control Flow – if Statement
• The if statement in Python is similar to the if statement in other languages.
>>>a = 25**5
>>>if a>10000:
print "More"
else:
print "Less"
More
>>>s="Hello World"
>>>if "World" in s:
s=s+"!"
print s
Hello World!
>>>if a>10000:
if a<1000000:
print "Between 10k and 100k"
else:
print "More than 100k"
elif a==10000:
print "Equal to 10k"
else:
print "Less than 10k"
More than 100k
>>>student={’name’:’Mary’,’id’:’8776’}
>>>if not student.has_key(’major’):
student[’major’]=’CS’
>>>student
{’major’: ’CS’, ’name’: ’Mary’, ’id’: ’8776’}
13. Control Flow – for Statement
• The for statement in Python iterates over items of any sequence (list, string, etc.) in the order in which they
appear in the sequence.
• This behavior is different from the for statement in other languages such as C, in which initialization,
incrementing and stopping criteria are provided.
#Looping over characters in a string
helloString = "Hello World"
for c in helloString:
print c
#Looping over keys in a dictionary
student = ’name’: ’Mary’, ’id’: ’8776’,’gender’:
’female’, ’major’: ’CS’
for key in student:
print "%s: %s" % (key,student[key]
#Looping over items in a list
fruits=[’apple’,’orange’,’banana’,’mango’]
i=0
for item in fruits:
print "Fruit-%d: %s" % (i,item)
i=i+1
14. Control Flow – while Statement
• The while statement in Python executes the statements within the while loop as long as the condition is true.
#Prints even numbers upto 100
>>> i = 0
>>> while i<=100:
if i%2 == 0:
print i
i = i+1
15. Control Flow – range Statement
• The range statement in Python generates a list of numbers in arithmetic progression.
#Generate a list of numbers from 10 - 100 with increments
of 10
>>>range(10,110,10)
[10, 20, 30, 40, 50, 60, 70, 80, 90,100]
#Generate a list of numbers from 0 – 9
>>>range (10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
16. Control Flow – break/continue Statements
• The break and continue statements in Python are similar to the statements in C.
• break
• The break statement breaks out of the for/while loop
• continue
• The continue statement continues with the next iteration.
#Continue statement example
>>>fruits=[’apple’,’orange’,’banana’,’mango’]
>>>for item in fruits:
if item == "banana":
continue
else:
print item
apple
orange
mango
#Break statement example
>>>y=1
>>>for x in range(4,256,4):
y = y * x
if y > 512:
break
print y
4
32
384
17. Control Flow – pass Statement
• The pass statement in Python is a null operation.
• The pass statement is used when a statement is required syntactically but you do not want any command or
code to execute.
>fruits=[’apple’,’orange’,’banana’,’mango’]
>for item in fruits:
if item == "banana":
pass
else:
print item
apple
orange
mango
18. Functions – Passing by Reference
• All parameters in Python functions are passed by reference.
• If a parameter is changed within a function, the change is also reflected in the calling function.
>>>def displayFruits(fruits):
print "There are %d fruits in the list" % (len(fruits))
for item in fruits:
print item
print "Adding one more fruit"
fruits.append('mango')
>>>fruits = ['banana', 'pear', 'apple']
>>>displayFruits(fruits)
There are 3 fruits in the list
banana
pear
apple
#Adding one more fruit
>>>print "There are %d fruits in the list" % (len(fruits))
There are 4 fruits in the list