PPT CLASS XII COMPUTER SCIENCE CH-2 functions_ppt
PPT CLASS XII COMPUTER SCIENCE CH-2 functions_ppt
def function_name(parameters):
"""docstring"""
statement(s)
return [expression]
f (x) = x 2
Above mentioned mathematical function can be written
in Python like this:
def f(x):
return x*x
User-
defined by programmer
defined
Scope
Part(s) of program within which a name is legal and
accessible.
Global Scope
A name declared in top level segment( main ) of a
program, it can be used inside whole program and all
blocks(functions,other blocks).
Local Scope
A name declared in a function-body is said to have local
scope, i.e. it can be used only within this function.
Kindergarten
Teachers Jobs
Rules & Regulations of the Group
1. No introduction
2. No Good Morning/Any wish type message
3.No personal Chats & Messages
4. No Spam
5. You can also ask your difficulties here.
For teachers, Artham resource materials include lesson plans, instructional guides,
assessment tools, professional development materials, and teaching aids. These
materials are well researched and created according to 2023-24 NEP and NCERT
guidelines.
For students, resource materials can include textbooks, study guides, homework
assignments, reference books, online learning platforms, and educational videos. These
materials can be obtained from school libraries, educational publishers, online
resources, and teachers.
Both teachers and students can also benefit from Artham educational resources which
are free and openly licensed educational materials that can be used and shared for
teaching and learning. Artham resource material include textbooks, courses, lesson
plans, and multimedia resources that are available online.
Teachers and students can also purchase these resources from the links provided with
every resource.