The value of default argument can be changed in the function body.
Anonymous Quiz
71%
True
29%
False
Local variables can be accessible inside inner function if it is declared inside outer function.
Anonymous Quiz
66%
True
34%
False
We use global keyword to define global variable in the main program.
Anonymous Quiz
73%
True
27%
False
To change the value of global variable in the function body we have to use global keyword.
Anonymous Quiz
74%
True
26%
False
Select the correct answer.
x = 10
def xy(): # code to change the value of x
x = 10
def xy(): # code to change the value of x
Anonymous Quiz
42%
global x= 12
39%
global x
19%
global x then x = 12
✍Watch the following two videos to get an answer for the above questions.
👉 Function Scope: Global Vs Local variables: https://www.youtube.com/watch?v=GzbPCRcf-gU
👉Function Parameters Vs Arguments in Python
https://youtu.be/WiJMTC7n6XE
👉 Function Scope: Global Vs Local variables: https://www.youtube.com/watch?v=GzbPCRcf-gU
👉Function Parameters Vs Arguments in Python
https://youtu.be/WiJMTC7n6XE
YouTube
Python Tutorial Part-10 | Function Scope
In this video, you will learn more about function and function scope.
- You will learn the local scope
-- You will learn the global scope
@epythonlab
0:00 Python Tutorial Part-09| Function Definition in Python
31:37 Python Tutorial Part-10 | Function Scope…
- You will learn the local scope
-- You will learn the global scope
@epythonlab
0:00 Python Tutorial Part-09| Function Definition in Python
31:37 Python Tutorial Part-10 | Function Scope…
Hey everyone and welcome to my channel. I just wanna know where you are from?
Anonymous Poll
3%
I'm from USA
30%
I'm from India
4%
I'm from Europe
19%
I'm from Africa
0%
I'm from Russia
0%
I'm from UAE
9%
I'm from Asia
1%
I'm from MEA
10%
I'm from Ethiopia
23%
Other
Epython Lab
Parameters are values while arguments are vatiables
Try it and ask if not understood.
Epython Lab
Python_for_Beginners_An_Essential_Guide_to_Easy_Learning_with_Basic.epub
Python for Beginners: An essential Guide to Easy Learning with basic exercises.
Python_Data_Analysis_for_Newbies_Numpypandasmatplotlibscikit_learnkeras.pdf
3.1 MB
Python Data Analysis for Newbies: Numpy/pandas/matplotlib/scikit-learn/keras
@epythonlab #dataanalysisbooks #pythonbooks
@epythonlab #dataanalysisbooks #pythonbooks
Select valid variables. Multiple choices are possible.
Anonymous Poll
18%
12x
63%
x_12
40%
__x
45%
_x12
69%
x_y
8%
9%
$_x
75%
xy
65%
fName
Forwarded from Epython Lab (Asibeh Tenager)
Python Programming for absolute beginners
#02-Variables and naming
#SubscribeYouTube
https://youtu.be/_yP7TzxOtP0
#02-Variables and naming
#SubscribeYouTube
https://youtu.be/_yP7TzxOtP0
YouTube
Python Tutorial Part-02 | Variables and Names in Python
Python Tutorial for Beginners Part-02. In this video, you will learn about the variables declarations and names in Python.Learn Python basics. Learn Python f...
Two String Functions You Must Know in Python 3.9.0
https://youtu.be/u1OH6nZdmw4
https://youtu.be/u1OH6nZdmw4
YouTube
Two String Functions You Must Know in Python 3.9.0
Hey, everyone, and welcomes to this video. In this video, You going to learn about the two important features of string functions which was introduced in the Python 3.9.0 version.
#python3.9.0 #pythontutorial #pythonfunction
Thanks for watching!
#python3.9.0 #pythontutorial #pythonfunction
Thanks for watching!
Epython Lab
Python is an interpreted programming language. What is the difference between interpreter and compiler? Explain your reason? #Keynote #python
Compilers and interpreters are programs that help convert the high level language (Source Code) into machine codes to be understood by the computers. Computer programs are usually written on high level languages. A high level language is one that can be understood by humans.
However, computers cannot understand high level languages as we humans do. They can only understand the programs that are developed in binary systems known as a machine code. To start with, a computer program is usually written in high level language described as a source code. These source codes must be converted into machine language and here comes the role of compilers and interpreters.
Differences between Interpreter and Compiler
!. Interpreter translates just one statement of the program at a time into machine code where as Compiler scans the entire program and translates the whole of it into machine code at once.
2. An interpreter takes very less time to analyze the source code. However, the overall time to execute the process is much slower. A compiler takes a lot of time to analyze the source code. However, the overall time taken to execute the process is much faster.
3. An interpreter does not generate an intermediary code. Hence, an interpreter is highly efficient in terms of its memory. A compiler always generates an intermediary object code. It will need further linking. Hence more memory is needed.
4. Keeps translating the program continuously till the first error is confronted. If any error is spotted, it stops working and hence debugging becomes easy. A compiler generates the error message only after it scans the complete program and hence debugging is relatively harder while working with a compiler.
5. Interpreters are used by programming languages like Ruby and Python for example. Compliers are used by programming languages like C and C++ for example.
However, computers cannot understand high level languages as we humans do. They can only understand the programs that are developed in binary systems known as a machine code. To start with, a computer program is usually written in high level language described as a source code. These source codes must be converted into machine language and here comes the role of compilers and interpreters.
Differences between Interpreter and Compiler
!. Interpreter translates just one statement of the program at a time into machine code where as Compiler scans the entire program and translates the whole of it into machine code at once.
2. An interpreter takes very less time to analyze the source code. However, the overall time to execute the process is much slower. A compiler takes a lot of time to analyze the source code. However, the overall time taken to execute the process is much faster.
3. An interpreter does not generate an intermediary code. Hence, an interpreter is highly efficient in terms of its memory. A compiler always generates an intermediary object code. It will need further linking. Hence more memory is needed.
4. Keeps translating the program continuously till the first error is confronted. If any error is spotted, it stops working and hence debugging becomes easy. A compiler generates the error message only after it scans the complete program and hence debugging is relatively harder while working with a compiler.
5. Interpreters are used by programming languages like Ruby and Python for example. Compliers are used by programming languages like C and C++ for example.
❤1👍1
Forwarded from Deleted Account
Watch "An overview of Python Programming in Amharic" on YouTube
https://youtu.be/Hu52k7dmg3U
https://youtu.be/Hu52k7dmg3U
YouTube
An overview of Python Programming in Amharic
In this video, I have explained Python Programming in Amharic.
#ethiopia #amharic #pythontutorial
Share and like
Thanks for watching!
#ethiopia #amharic #pythontutorial
Share and like
Thanks for watching!
Deleted Account
Watch "An overview of Python Programming in Amharic" on YouTube https://youtu.be/Hu52k7dmg3U
This is for local people only. I will make in English too and I will invite you an online zoom meeting soon.
How to Setup Jupyter Notebook on Visual studio code
https://youtu.be/-uJRlXDhrZI4
https://youtu.be/-uJRlXDhrZI4
YouTube
Data science using Jupyter Notebook on Visual Studio Code
Hello everyone, in this video, I gonna show you how to use #JupyterNotebook on #VisualStudioCode
#Jupyternotebook #visualstudiocode #python #datascience
#Subscribe and #share
Thanks for watching.
#Jupyternotebook #visualstudiocode #python #datascience
#Subscribe and #share
Thanks for watching.