Wednesday, January 10, 2024

import asyncio : Python library that provides support for writing asynchronous code using coroutines, which are a special kind of function that can be paused and resumed, allowing other tasks to run in the meantime.

  


asyncio is a Python library that provides support for writing asynchronous code using coroutines, which are a special kind of function that can be paused and resumed, allowing other tasks to run in the meantime. Asynchronous programming is particularly useful when dealing with I/O-bound operations, such as network requests or reading/writing to files, where waiting for the operation to complete would otherwise block the entire program.

Here are some key concepts and components of asyncio:

  1. Coroutines:

    • In the context of asyncio, coroutines are functions defined with the async keyword. They can be paused with the await keyword, allowing other coroutines to run in the meantime.

    • Example:

  2. import asyncio async def my_coroutine(): print("Start") await asyncio.sleep(2) # Simulate an asynchronous operation print("End") asyncio.run(my_coroutine())
  1. Event Loop:

    • The core of asyncio is the event loop. It manages and schedules the execution of coroutines, tasks, and callbacks.
    • The asyncio.run() function is used to run the main coroutine in a simple program. In more complex applications, you might create an event loop manually and run it using loop.run_until_complete().
  2. Tasks:

    • A task is a higher-level abstraction that wraps a coroutine and allows it to be scheduled and executed by the event loop.

    • Tasks can be created using asyncio.create_task().

import asyncio

async def my_coroutine():
    print("Start")
    await asyncio.sleep(2)
    print("End")

async def main():
    task = asyncio.create_task(my_coroutine())
    await task

asyncio.run(main())


  1. Future:

    • A Future represents the result of an asynchronous operation that may not have completed yet. It is a low-level building block used by asyncio to manage the lifecycle of asynchronous tasks.
    • You can use asyncio.ensure_future() to create a Future.
  2. Asynchronous I/O:

    • asyncio provides various functions to perform asynchronous I/O operations, such as asyncio.sleep() for sleeping without blocking the event loop, and asyncio.gather() for concurrently executing multiple coroutines.
import asyncio async def foo(): await asyncio.sleep(1) print("Foo") async def bar(): await asyncio.sleep(2) print("Bar") async def main(): await asyncio.gather(foo(), bar()) asyncio.run(main())

In summary, asyncio is a powerful tool for writing asynchronous code in Python, especially when dealing with I/O-bound operations. It enables efficient concurrency by allowing multiple tasks to run concurrently within a single-threaded event loop.

git -c http.sslVerify=false clone git@gitlab.com:aaa/xxx/ccc/ git config http.sslVerify "false" git -c http.sslVerify=false clone <path> pip3 install python -m pip install mitmproxy python -m pip install apiclient python -m pip --force-reinstall google-api-python-client sudo pip install --upgrade google-api-python-client pip install --force-reinstall google-api-python-client pip3 install apiclient



What is import Asyncio in Python? Why use asyncio in Python? What is an async function in Python? What is asyncio module? When to use async? How to use import Python? What is import () in Python? What is import * in Python? What is import in Python syntax? Why use an async function? Does FastAPI use Asyncio? Is there async in Python? Is asyncio built in Python? What are the benefits of asyncio? When did Python add Asyncio? Is asyncio a standard Python library? Does asyncio use threads? What are the modes of asyncio? How do I run an asyncio function in Python? Does asyncio sleep or wait? How does asyncio run work? What does async mean in coding? Is Python async or sync? What is the difference between async and function? Does asyncio use multiprocessing? Why asyncio is better than threads? What does asyncio gather? Why is async good? Where is asynchronous used?


For more guidance !!! Online Individual / Group classes in English / Sinhala / Tamil. Sample Projects/Assignments Exam Papers, Tutorials, Notes and Answers will we provided. CALL +94 777 33 7279 | EMAIL ITCLASSSL@GMAIL.COM YouTube https://www.youtube.com/channel/UCJojbxGV0sfU1QPWhRxx4-A LinkedIn https://www.linkedin.com/in/ict-bit-tuition-class-software-development-colombo/ WordPress https://computerclassinsrilanka.wordpress.com quora https://www.quora.com/profile/BIT-UCSC-UoM-Final-Year-Student-Project-Guide Newsletter https://sites.google.com/view/the-leaning-tree/newsletter Wix https://itclasssl.wixsite.com/icttraining Web https://itclass-bit-ucsc-uom-php-final-project.business.site/ mystrikingly https://bit-ucsc-uom-final-year-project-ideas-help-guide-php-class.mystrikingly.com/ https://elakiri.com/threads/bit-ucsc-uom-php-mysql-project-guidance-and-individual-classes-in-colombo.1627048/

Grade 6 Geography Chapter 1.1 English medium worksheets questions and answers #Sinhala #Tamil Medium Notes

 


0:00 Shape of the Land of the School 0:10 a location of a school premises. The parapet wall and the fence indicate the boundaries of the land. We can identify the shape of the land with the help of the boundaries. The picture shows buildings in the school premises, a bank and roads located close to the school. 0:20 the plan of that school premises. Letter ‘X’ indicates the Grade six class in the plan. All the features shown in figure 1.2 are marked on the plan using different symbols. Compare the picture and the plan to identify the differences. 0:30 Identification of the Direction 0:40 Indication of the direction is important when drawing a plan. We use a compass to find the direction correctly. Use the compass at school and find out the direction of North of the classroom. You can identify other directions as well, when you identify the North 0:50 You can identify the directions according to the direction of the sunrise in the morning, if a compass is not available. When you stand facing the rising sun, stretching your hands, your right hand points to the direction of the South. The opposite direction to which your left hand is pointed, is the North. Accordingly, you can identify the other directions. Here, you can see your shadow behind you 1:00 Indicating the Directions of Some Selected Places from the School 1:10 models that indicate directions ***************************************************** 1:20 The Shape of Our School Grounds 1:30 a picture of our school area. Do you see the walls and the fence around it? Those show where our school land ends. Just like when we draw a picture and use lines to show the edges, here the walls and the fence show the edges of our school land. 1:40 the buildings in our school and also a road nearby. The picture helps us understand what our school looks like from the outside. 1:50 Our School Map 2:00 Look at the second picture, the one that looks like a map. The letter 'X' shows where the Grade six class is on the map. All the things you see in the first picture are marked with special symbols on the map. It's like a drawing that helps us see where everything is. 2:10 Now, let's compare the first picture with the map to find what's the same and what's different. 2:20 Finding Directions 2:30 When we make a map, it's important to know which way is which. We use something called a compass to help us know the directions. It's like a tool that tells us where North, South, East, and West are. 2:40 If we don't have a compass, we can also use the sun. In the morning, when the sun rises, it's in the East. If you face the rising sun and stretch your hands, your right hand points to the South, and your left hand points to the North. 2:50 So, if you know where the sun rises, you can figure out all the other directions. And, did you know, your shadow is behind you when the sun is in front? 3:00 Places Around Our School 3:10 two models that show directions. It helps us know where different places are in relation to our school. 3:20 understanding the shape of our school and knowing the directions helps us make maps and find our way around! 3:30 What is the shape of the land called? 3:40 What is the land structure? 3:50 What are examples of landforms? 4:00 How are hills formed? 4:10 What is the size and shape of the land? 4:20 What is the shape and lay of the land called? 4:30 What is land area? 4:40 How do you explain land? 4:50 What are the types of land? 5:00 What is a land formation? 5:10 What are the 4 types of landforms? 5:20 What are the 3 main types of landforms? 5:30 What is the true shape of Earth? 5:40 What is Earth shape in geography? 5:50 What is changing the shape of land? 6:00 What do hills look like? 6:10 What is a valley landform? 6:20 Is hill a landform? 6:30 What are the 5 types of land? 6:40 What are the 5 type of lands? 6:50 What are the features of land? 7:00 What is a small area of land Grade 6? How do you write area of land? What is plot area in land? What is Moon shape? What is geoid shape? What is the shape of the world map? What is the area of a building? What does floor area mean? What is the chart area? Why are area plots used? For more guidance !!! Online Individual / Group classes in English / Sinhala / Tamil. Sample Projects/Assignments Exam Papers, Tutorials, Notes and Answers will we provided. CALL +94 777 33 7279 | EMAIL ITCLASSSL@GMAIL.COM YouTube https://www.youtube.com/channel/UCJojbxGV0sfU1QPWhRxx4-A LinkedIn https://www.linkedin.com/in/ict-bit-tuition-class-software-development-colombo/ WordPress https://computerclassinsrilanka.wordpress.com quora https://www.quora.com/profile/BIT-UCSC-UoM-Final-Year-Student-Project-Guide Newsletter https://sites.google.com/view/the-leaning-tree/newsletter Wix https://itclasssl.wixsite.com/icttraining Web https://itclass-bit-ucsc-uom-php-final-project.business.site/ mystrikingly https://bit-ucsc-uom-final-year-project-ideas-help-guide-php-class.mystrikingly.com/

Friday, January 5, 2024

Grade 6 GEOGRAPHY lesson 1 : The School and its Immediate Surroundings : #English Medium New Syllabus National Curriculum Online Class and Tuitions

Title: Exploring the Layers of Your School's Location

For explanation checkout below video...



Introduction: Children are the heart of our community, and their learning journey starts at home. As they grow, schools become their second home, providing formal education. In Sri Lanka, schools are scattered across diverse landscapes, from bustling cities to tranquil villages, hills, and coastal areas.

The Significance of School: Schools are not just buildings; they are special places where students, like you, explore and learn exciting things. Whether your school is in a small village or a big city, it plays a crucial role in shaping your education.

Identifying the Location of a School The objective of this lesson is to guide you how to indicate the location of your school appropriately. It may be easy for you to answer if someone asks the name of the village or the town in which the school is located. However, it is not that easy to answer when someone asks the location of your school according to the administrative division. The location of your school in the divisional administrative hierarchy

  • Province District Divisional Secretariat Division Grama Niladhari Division School

Embarking on a Journey Through Administrative Divisions:

1. Province:

  • Imagine a giant nesting doll representing the province. Sri Lanka is divided into a few provinces, each like a massive doll containing many districts.

Example: If you're in the Western Province, your doll would be labeled "Western Province," and it would hold districts like Colombo, Gampaha, and Kalutara.

2. District:

  • Inside the province doll, there are smaller dolls representing districts. Each district has its unique features and communities.

Example: If you're in the Colombo district, your doll within the Western Province doll would say "Colombo District" and hold various Divisional Secretariat Divisions.

3. Divisional Secretariat Division:

  • Within the district doll, there are more dolls representing Divisional Secretariat Divisions. These are like puzzle pieces that fit into the district.

Example: In Colombo district, you might have dolls for Dehiwala, Kotte, and Mount Lavinia as Divisional Secretariat Divisions.

4. Grama Niladhari Division:

  • Within each Divisional Secretariat Division doll, there are smaller dolls representing Grama Niladhari Divisions. These are the tiniest parts that make up a community.

Example: In the Mount Lavinia Divisional Secretariat Division, you might find Grama Niladhari Divisions for Wellawatta, Ratmalana, and Moratuwa.

5. School:

  • Finally, the smallest doll represents your school, nestled within a Grama Niladhari Division. This is where you spend your days learning and growing.

Example: Your school might be in the Ratmalana Grama Niladhari Division within the Mount Lavinia Divisional Secretariat Division, which is part of the Colombo district, within the Western Province.

Story of the Nesting Dolls: Imagine these administrative divisions as a set of nesting dolls, each layer adding detail to the story of your school's location. Just like how you might share stories about your favorite toys or adventures, you can now share the layered tale of your school's unique place in the larger community.

Understanding these divisions not only helps you explain where your school is but also connects you to the broader community, much like the intricate layers of a set of nesting dolls that, when opened, reveal the beauty of your school's location. 


For more guidance !!!


Online Individual / Group classes in English / Sinhala / Tamil. Sample Projects/Assignments Exam Papers, Tutorials, Notes and Answers will we provided.


CALL +94 777 33 7279 | EMAIL  ITCLASSSL@GMAIL.COM


YouTube https://www.youtube.com/channel/UCJojbxGV0sfU1QPWhRxx4-A

LinkedIn https://www.linkedin.com/in/ict-bit-tuition-class-software-development-colombo/

WordPress https://computerclassinsrilanka.wordpress.com

quora https://www.quora.com/profile/BIT-UCSC-UoM-Final-Year-Student-Project-Guide

Newsletter https://sites.google.com/view/the-leaning-tree/newsletter

Wix https://itclasssl.wixsite.com/icttraining

Web https://itclass-bit-ucsc-uom-php-final-project.business.site/

mystrikingly https://bit-ucsc-uom-final-year-project-ideas-help-guide-php-class.mystrikingly.com/

https://elakiri.com/threads/bit-ucsc-uom-php-mysql-project-guidance-and-individual-classes-in-colombo.1627048/