Professional Documents
Culture Documents
• It helps make data more useful by arranging it in a way that makes sense
for analysis or presentation.
Explanation:- Data Manipulation helps in understanding the basic operations like arithmetic
operations for numbers
TIME TO EXPLORE OUR LEARNING
JOURNEY
We're starting with Data Manipulation in Python with block coding
where we will:-
• We can do things with data, like adding more things to them, taking
things out, or changing the order that is known as Manipulation.
Explanation:-We can do things with data, like adding more things to them,
taking things out, or changing the order that is known as Data Manipulation.
Ready for Breeze?
Activity 1:-
using CODELY Platform
SOLUTION
Question Time
Ques 5 :-
Set variable block is found under logic block
A. True
B. False
Ans:-True
Explanation:-We can find that under variable block section
Let’s Explore the Introduction(cont.)
Let’s Explore the Introduction(cont.)
• We can learn about basic operations we can do with data, such as
adding numbers together or combining words.
SOLUTION
ARE YOU CATCHING ON?
Types Of Data Manipulation in Python
There are several types of data manipulation in Python that could be
introduced and are focused on fundamental concepts:-
SOLUTION
IS THE CONCEPT
ABSORBED?
Let’s Showcase our Skills !!!
• Get set to craft something amazing – our project adventure begins
now!
• Check the value in the variable score and if it is greater than 18 print
Pass otherwise print Fail(using decision making statements).
Step 1: To get started, open our Codely Platform and head to the
Practice Factory.
https://portal.aptcoder.com/dist/python_factory.html
Step-2-
Now, we are working with this input section incorporating various
blocks
• Start with the Run Command and after that, we insert our blocks.
• Toggle button will help u to see the text based coding part.
Step-3
Now, click on variable and create a variable and name it as score
Step-4
Now, click on variable and take set block element under it and using
Math block assign a value 45 to the variable score.
Step-5
Now, click on logic and drag and drop the if block to the input section
under set block element
Step-6
Now, click on logic and drag and drop the if block to the input section
under set block element.
Step-7
• Now, click on logic block from which you will get the comparison
block element with ‘=‘ symbol
• Just drag and drop it on the if for attaching condition.
Step-8
• Now click on the Variable block and take score variable from it attach it on the
left side of ‘=‘ symbol
• Go to Math block and take Zero block element and drop it on the right hand side
of ‘=‘ symbol, change 0 to 18
• Click on the ‘=‘ symbol and change it to ‘>’ symbol
Step-9
• Now click on the text block and take print block element from it and drop it below if(in do).
Then type pass on it.
Step-10
• Click on the settings like symbol on the left side of if then you will get the
following options.
Step-11
• Click on the else and drop it on the bottom of if in the option part itself(note: you
have to attach else on the if block in the option screen that you got while clicking
on the settings, not in the input section) .
• Then else block will appear on the input screen also.
READY FOR A QUESTION…
Ques 8:-
We can’t create else block element under if block element.
A . True
B . False
Ans:-False
Explanation:-Click on the settings like symbol on the left side of if then
you will get the options for else.
Step-12
• Click on text block and take print block element and drop it in else
• Type fail in it.
Ready for Breeze?
Activity 4:-
using CODELY Platform
Prompt the user to enter a value and check if the value is greater than
15 print Good else print Bad.
SOLUTION
Step-13
• If you want to check change the value of score to 10 in set block
element and RUN it again.
READY FOR A QUESTION…
Ques 9:-
For evaluating conditions the comparison operators are available
under which block
A. Math
B. Loop
C. Logic
D. Variable
Ans:-Logic
Explanation:- We will get the comparison operators from the logic
section.
PROJECT LINK
https://portal.aptcoder.com/dist/python_factory.html?1
?shared?b5719fa5-9f4b-4734-aadd-5d17d707a58e
Output Screen looks like:-
ARE YOU FOLLOWING
ALONG ?
MOVING FORWARD, LET’S HEAD TO THE CONCLUSION
• We've seen how conditional statements (if, else) and can be used to
control the flow of our programs based on certain conditions.
LET'S WRAP IT UP WITH ONE LAST
QUESTION!
Question 10:-
DID YOU FOLLOW ALONG AND ENJOY OUR AWESOME FIRST PROJECT?
Ready for Breeze?
Activity 5:-
using CODELY Platform
SOLUTION
ARE YOU CLEAR ON THIS?
HOMEWORK CHALLENGE