1. What is the correct way to declare a variable in Python?
Anonymous Quiz
7%
A. var x = 5
67%
B. x = 5
25%
C. int x = 5
2%
D. declare x as 5
2. What is the purpose of comments in Python code?
Anonymous Quiz
6%
A. To make the code run faster
85%
B. To explain the purpose of the code
6%
C. To hide code from other programmers
2%
D. To declare variables
3. What type of operations can you perform on variables in Python?
Anonymous Quiz
12%
A. Mathematical operations
6%
B. String operations
0%
C. Logical operations
82%
D. All of the above
4. What is the difference between declaring a variable and assigning a value to it in Python?
Anonymous Quiz
19%
A. There is no difference
47%
B. Declaring initializes with a value, assigning a value changes the value of an existing variable
30%
C. Declaring a variable creates a variable, while assigning a value creates a new variable
4%
D. Assigning a value is only done with strings
5. What is the significance of using an underscore (_) in variable names in Python?
Anonymous Quiz
22%
A. It indicates a reserved word
66%
B. It separates words in a variable name
6%
C. It is not allowed in variable names
6%
D. It is used for mathematical operations
π1
πNew Subscribers
Welcome!
It is good for you if you scroll up and see the previous lessons we have been learning.
Also don't forget to invite your friends ,who are interested in programming, to our channel.
@python_pioneers
Welcome!
It is good for you if you scroll up and see the previous lessons we have been learning.
Also don't forget to invite your friends ,who are interested in programming, to our channel.
@python_pioneers
Python Pioneers: A Beginner's Guide πͺπΉ pinned Β«πNew Subscribers Welcome! It is good for you if you scroll up and see the previous lessons we have been learning. Also don't forget to invite your friends ,who are interested in programming, to our channel. @python_pioneersΒ»
1β£0β£1β£0β£1β£1β£0β£1β£0β£1β£1β£0β£1β£1β£1β£0β£1β£0β£
Test your knowledge about arithmetic operations in python with these easy questions βββββ
Test your knowledge about arithmetic operations in python with these easy questions βββββ
π1
9. What is the result of (17 - 6) / 2 in Python?
Anonymous Quiz
75%
A) 5.5
12%
B) 6
7%
C) 6.5
5%
D) 7
α₯α«αααΉ ααα αα α© α αα°απ π or π
π16π2
Good Morning α°αα½! α₯α΅α² αα
α½α α αα α α΅α°ααͺ α³αͺα α αα₯α§α΅α’
You get what you give:
Once, there was a farmer who regularly sold butter to a baker. One day, the baker decided to weigh the butter to see if he was getting the exact amount that he asked for. He found out that he wasnβt, so he took the farmer to court.
The judge asked the farmer if he uses any measure to weigh the butter. The farmer replied, βYour Honor, Iβm primitive. I donβt have a proper measure, but I do have a scale.β
The judge replied, βThen how do you weigh the butter?β
The farmer replied; βYour Honor, long before the baker started buying butter from me, I have been buying a pound loaf of bread from him. Every day, when the baker brings the bread, I put it on the scale and give him the same weight in butter. If anyone is to be blamed, itβs the baker.β
Moral of the story:In life, you get what you give. Donβt try to cheat others.
ααα«α αα ααααα½α!
#EnglishStories
@python_pioneers
@python_pioneers
You get what you give:
Once, there was a farmer who regularly sold butter to a baker. One day, the baker decided to weigh the butter to see if he was getting the exact amount that he asked for. He found out that he wasnβt, so he took the farmer to court.
The judge asked the farmer if he uses any measure to weigh the butter. The farmer replied, βYour Honor, Iβm primitive. I donβt have a proper measure, but I do have a scale.β
The judge replied, βThen how do you weigh the butter?β
The farmer replied; βYour Honor, long before the baker started buying butter from me, I have been buying a pound loaf of bread from him. Every day, when the baker brings the bread, I put it on the scale and give him the same weight in butter. If anyone is to be blamed, itβs the baker.β
Moral of the story:In life, you get what you give. Donβt try to cheat others.
ααα«α αα ααααα½α!
#EnglishStories
@python_pioneers
@python_pioneers
β€5π3π1