- 442
- 291 459
Muhammad Yasir Bhutta
Pakistan
เข้าร่วมเมื่อ 22 มิ.ย. 2007
اَلسَلامُ عَلَيْكُم
Welcome To Yasir Bhutta TH-cam Channel.
Subscribe To my TH-cam Channel to learn Python, Microsoft 365, Computer basics
Thanks,
Welcome To Yasir Bhutta TH-cam Channel.
Subscribe To my TH-cam Channel to learn Python, Microsoft 365, Computer basics
Thanks,
Python Function Quiz #92: What is the output of this Python code? | Python Quiz
@yasirbhutta 🔍 **Understanding Global Variables in Python!** 🐍
In this video, we dive into the concept of global variables in Python through a simple yet insightful example. We'll look at a piece of code that modifies a global variable from within a function and see what output we get!
Here’s the code we’ll analyze:
```python
x = 5
def my_func():
global x
x = 10
my_func()
print(x)
```
We'll discuss the following options for the output:
a) `5`
b) `10`
c) `None`
d) `Error`
Join us as we break down how the `global` keyword works and why it’s essential for modifying variables defined outside of functions. By the end of this video, you’ll have a clear understanding of how to effectively use global variables in your own Python programs!
#Python #Programming #GlobalVariables #CodingTutorial #LearnPython
Don't forget to like 👍, comment 💬, and subscribe 🔔 for more Python programming tutorials!
You can also follow me on:
Website: yasirbhutta.github.io/
Facebook: yasirbhutta786/
TH-cam:youtube.com/@yasirbhutta
Twitter: yasirbhutta/
Thanks for watching! 🙏**
#yasirbhutta #codingshorts #pythonprogramming #codingshortvideo #pythonbasics #pythontutorial #codinglife #python #Python #PythonQuiz #PythonFunctions #PythonCoding #PythonMCQ #PythonProgramming #LearnPython #PythonForBeginners #PythonBasics #PythonTutorial #PythonInterviewQuestions #CodingQuiz #ProgrammingQuiz #PythonTips #TechQuiz #PythonChallenge #CodingChallenges
In this video, we dive into the concept of global variables in Python through a simple yet insightful example. We'll look at a piece of code that modifies a global variable from within a function and see what output we get!
Here’s the code we’ll analyze:
```python
x = 5
def my_func():
global x
x = 10
my_func()
print(x)
```
We'll discuss the following options for the output:
a) `5`
b) `10`
c) `None`
d) `Error`
Join us as we break down how the `global` keyword works and why it’s essential for modifying variables defined outside of functions. By the end of this video, you’ll have a clear understanding of how to effectively use global variables in your own Python programs!
#Python #Programming #GlobalVariables #CodingTutorial #LearnPython
Don't forget to like 👍, comment 💬, and subscribe 🔔 for more Python programming tutorials!
You can also follow me on:
Website: yasirbhutta.github.io/
Facebook: yasirbhutta786/
TH-cam:youtube.com/@yasirbhutta
Twitter: yasirbhutta/
Thanks for watching! 🙏**
#yasirbhutta #codingshorts #pythonprogramming #codingshortvideo #pythonbasics #pythontutorial #codinglife #python #Python #PythonQuiz #PythonFunctions #PythonCoding #PythonMCQ #PythonProgramming #LearnPython #PythonForBeginners #PythonBasics #PythonTutorial #PythonInterviewQuestions #CodingQuiz #ProgrammingQuiz #PythonTips #TechQuiz #PythonChallenge #CodingChallenges
มุมมอง: 27
วีดีโอ
Python Function Quiz #91: What is the output of this Python code? | Python Quiz
มุมมอง 21612 ชั่วโมงที่ผ่านมา
@yasirbhutta 📚 In this video, we'll walk through a quick Python quiz question focused on function parameters and variable assignment in Python. When you call the function `change_value(num)` in Python, what will be printed? Question: ```python def change_value(x): x = 10 num = 5 change_value(num) print(num) ``` Options: - A) `5` - B) `10` - C) `Error` - D) `None` 🔍 Answer Explanation We'll expl...
Python Function Quiz #90: What is the output of this Python code? | Python Quiz
มุมมอง 493วันที่ผ่านมา
@yasirbhutta In this video, we dive into a common Python function scenario involving default and keyword arguments. We'll break down the code step by step and help you understand how Python handles function parameters. Whether you're new to Python or brushing up on the basics, this is a perfect example to solidify your understanding of how to call functions with both positional and keyword argu...
Python Function Quiz #89: What is the output of this Python code? | Python Quiz
มุมมอง 13221 วันที่ผ่านมา
@yasirbhutta In this video, we explore the behavior of a simple Python function that uses the `pass` statement. Can you guess what the output of the following code will be? Python Quiz ```python def my_function(): pass print(my_function()) ``` Options: A) `None` B) `0` C) `True` D) `Error` Watch to learn the correct answer and understand why! We’ll dive into how Python handles functions without...
Python Function Quiz #88: Can You Guess the Output? | Python for Beginners | Python Quiz
มุมมอง 60หลายเดือนก่อน
Python Function Quiz #88: Can You Guess the Output? | Python for Beginners | Python Quiz
Python Function Quiz #87: Can You Guess the Output? | Default Arguments | Python for Beginners
มุมมอง 64หลายเดือนก่อน
Python Function Quiz #87: Can You Guess the Output? | Default Arguments | Python for Beginners
Python Quiz #86: Can You Guess the Output? | Use of Variables | Python for Beginners
มุมมอง 57หลายเดือนก่อน
Python Quiz #86: Can You Guess the Output? | Use of Variables | Python for Beginners
Python Operator Quiz #85: Can you Guess the Output | Python `is` Operator | Python For Beginners
มุมมอง 34หลายเดือนก่อน
Python Operator Quiz #85: Can you Guess the Output | Python `is` Operator | Python For Beginners
Python Operator Quiz #84: Python `in` Operator | Python For Beginners
มุมมอง 26หลายเดือนก่อน
Python Operator Quiz #84: Python `in` Operator | Python For Beginners
Python Operator Quiz #83: Python `in` Operator Explained: Is 4 in the List? | Python For Beginners
มุมมอง 40หลายเดือนก่อน
Python Operator Quiz #83: Python `in` Operator Explained: Is 4 in the List? | Python For Beginners
Python Operator Quiz #82: Operators Quiz for Beginners | Python MCQs | Python For Beginners
มุมมอง 30หลายเดือนก่อน
Python Operator Quiz #82: Operators Quiz for Beginners | Python MCQs | Python For Beginners
Guard Statements in Python: Explained Simply | Python Tutorial for Beginners
มุมมอง 149หลายเดือนก่อน
Guard Statements in Python: Explained Simply | Python Tutorial for Beginners
Python Data Type Quiz #81: Data Type Quiz for Beginners | Python MCQs | Python For Beginners
มุมมอง 117หลายเดือนก่อน
Python Data Type Quiz #81: Data Type Quiz for Beginners | Python MCQs | Python For Beginners
Python Data Type Quiz #80: Data Type Quiz for Beginners | Python MCQs | Python For Beginners
มุมมอง 96หลายเดือนก่อน
Python Data Type Quiz #80: Data Type Quiz for Beginners | Python MCQs | Python For Beginners
Python Data Type Quiz #79: Data Type Quiz for Beginners | Python MCQs | Python For Beginners
มุมมอง 52หลายเดือนก่อน
Python Data Type Quiz #79: Data Type Quiz for Beginners | Python MCQs | Python For Beginners
Python Data Type Quiz #78: Use of Variables Quiz for Beginners | Python MCQs | Python For Beginners
มุมมอง 126หลายเดือนก่อน
Python Data Type Quiz #78: Use of Variables Quiz for Beginners | Python MCQs | Python For Beginners
Python Print Function Quiz #75: Can you Guess the Output | Python MCQs | Python For Beginners
มุมมอง 54หลายเดือนก่อน
Python Print Function Quiz #75: Can you Guess the Output | Python MCQs | Python For Beginners
Python Function Quiz #74 Fix the TypeError in Arguments: A Coding Challenge | Python for Beginners
มุมมอง 35หลายเดือนก่อน
Python Function Quiz #74 Fix the TypeError in Arguments: A Coding Challenge | Python for Beginners
Python Quiz #73 Fix the ZeroDivisionError: A Coding Challenge | Python for Beginners
มุมมอง 41หลายเดือนก่อน
Python Quiz #73 Fix the ZeroDivisionError: A Coding Challenge | Python for Beginners
Python Function Quiz #72 Fix the UnboundLocalError: A Coding Challenge | Python for Beginners
มุมมอง 81หลายเดือนก่อน
Python Function Quiz #72 Fix the UnboundLocalError: A Coding Challenge | Python for Beginners
Python String Quiz #66: Python Code Challenge | Python For Beginners | String Python Quiz
มุมมอง 84หลายเดือนก่อน
Python String Quiz #66: Python Code Challenge | Python For Beginners | String Python Quiz
Python Dictionary Quiz #65: Python Code Challenge | Python For Beginners | dict Python Quiz
มุมมอง 68หลายเดือนก่อน
Python Dictionary Quiz #65: Python Code Challenge | Python For Beginners | dict Python Quiz
Python Data Type Quiz #64 Fix the Error in Python: A Coding Challenge | Python for Beginners
มุมมอง 98หลายเดือนก่อน
Python Data Type Quiz #64 Fix the Error in Python: A Coding Challenge | Python for Beginners
Python Operator Quiz #61: Operators Quiz for Beginners | Python MCQs | Python For Beginners
มุมมอง 109หลายเดือนก่อน
Python Operator Quiz #61: Operators Quiz for Beginners | Python MCQs | Python For Beginners
How to Post to a Facebook Page Using Python and the Facebook Graph API | Python Tutorial
มุมมอง 386หลายเดือนก่อน
How to Post to a Facebook Page Using Python and the Facebook Graph API | Python Tutorial
Python Function Quiz #56 Fix the Error in Python: A Coding Challenge | Python for Beginners
มุมมอง 96หลายเดือนก่อน
Python Function Quiz #56 Fix the Error in Python: A Coding Challenge | Python for Beginners
Python Quiz #54: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
มุมมอง 19หลายเดือนก่อน
Python Quiz #54: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
Python Quiz #53: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
มุมมอง 26หลายเดือนก่อน
Python Quiz #53: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
Python Quiz #52: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
มุมมอง 15หลายเดือนก่อน
Python Quiz #52: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
Python Quiz #51: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
มุมมอง 35หลายเดือนก่อน
Python Quiz #51: Python Basics | Python MCQs | Python For Beginners #yasirbhutta
None
Great job
11
Great job
Variable came after it was printed
B
Great
Float
Good
Error
greet("ali", 25)
Ur quizes are so usefull thank you
Thank you brother
Jey sree Ram Ram
Thanks 👍🏻👍🏻👍🏻👍🏻👍🏻
A
Great job
0,2,4,6,8
भिलाई इस्पात मंत्री
Please share in English?
Salam alaikm Main mechanical ka banda huuu 41 yrs ,,,kya python sikhne ka fayda hoga sir??
Wa Alaikum Assalam! Python can be helpful in any field, whether you are a mechanical engineer or from another domain. Python can assist you in automation, data analysis, and even mechanical simulations. You can use Python in CAM (Computer-Aided Manufacturing) software, simulations, and data-driven decision-making. Age is not a barrier to learning, and learning Python can open up new opportunities for you.
Hi thanks for the tutorial, with ClickOnce there are a way to prevent the update process updating some files? I need to preserve some files across the update process... Thanks and best regards!!
Not tested. Please check maybe resolved. Here’s a suggestion for your reply: with ClickOnce, you can prevent certain files from being updated by marking them as 'data files' in your ClickOnce deployment settings. These files will be placed in a special data directory and will not be overwritten during updates. This ensures that your data remains intact across updates. [GhatGPT]
Ise pahle jaisa kyse kre ❓
A.None
Good 👍
error
A
Correct, great job 👍
none because pass it a place holder so it doesn't do anything
B
Correct answer, good 👍
Wa alaikom Salam brother , good work 👏👏
Thank
float
none
Good 👍
B
Great job 👍
Str
Awesome! 👍
B
Awesome!
B
Awesome! 👍
No colon after if x == 10 Correct one if x == 10: Output x is 10
Good 👍
C 12
Great job 👍
C) true
Good
True
Correct, Good job
12
Great job 👍
B
Correct! Great Job! 🎉
@@yasirbhutta, thanks for your time
Answer is 6
Correct! Great Job! 🎉
B
👍
B
Good
12
Good
B
Awesome 👍
If it was 100 it would be = 102
Yes
C 12
Good
Change the elif on line 5 to an if?
Awesome 👍
How can be that the bug? What if I intended to do that...
True
Good 👍
C
Good 👍
b
Bro check again
12
Awesome
C?
Check this video for explanation th-cam.com/video/jWKy1wbqSjY/w-d-xo.html
12: C
Good 👍
There is no variable