The document discusses Python's if-else conditional statements. It provides examples of using if-else to check 1) if a user's age is greater than or equal to 18, 2) if a number is positive or negative, 3) if a number is even or odd, 4) if a number is divisible by 3 or 7, and 5) if a year is a leap year. The last example shows how to find the maximum between two numbers using if-else. The syntax and logic of if-else statements are explained through these examples.
Types of Statements in Python Programming LanguageExplore Skilled
The slide describes the types of flow control statements in Python including conditional statement , loop statement , control statement such as break and continue .
COM1407: Program Control Structures – Decision Making & BranchingHemantha Kulathilake
At the end of this lecture students should be able to;
Define the operation of if, if-else, nested if-else, switch and conditional operator.
Justify the control flow of the program under the aforementioned C language constructs.
Apply taught concepts for writing programs.
Operators and expressions in c languagetanmaymodi4
what is operator in c language
uses of operator in c language
syatax of operator in c language
program of operator in c language
what is expressions in c language
use of expressions in c language
syantax of expressions in c language
Detailing about basics of C language and its control structure for learning C Language for beginners. It covers looping statement , control statement etc.
Types of Statements in Python Programming LanguageExplore Skilled
The slide describes the types of flow control statements in Python including conditional statement , loop statement , control statement such as break and continue .
COM1407: Program Control Structures – Decision Making & BranchingHemantha Kulathilake
At the end of this lecture students should be able to;
Define the operation of if, if-else, nested if-else, switch and conditional operator.
Justify the control flow of the program under the aforementioned C language constructs.
Apply taught concepts for writing programs.
Operators and expressions in c languagetanmaymodi4
what is operator in c language
uses of operator in c language
syatax of operator in c language
program of operator in c language
what is expressions in c language
use of expressions in c language
syantax of expressions in c language
Detailing about basics of C language and its control structure for learning C Language for beginners. It covers looping statement , control statement etc.
This course provides a strong background about JAVA programming language in the field of computing. The course begins with an introductory overview of the Computer and programs, with distinguishes the terms API, IDE and JDK, and gives a comprehensive knowledge about Java development kits and Java integrative development environments like eclipse and NetBeans. Furthermore, the course prepares student to write, compile, run and develop Java applications which are used to find out the solution for several real life problems, in conjunction with using GUI to obtain input, process and display outputs like message dialog boxes, input dialog boxes, confirmation dialog and so on.
JAVA is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.
The aim of this course is to explore Java programming fundamentals related to write, compile, run and develop Java applications that are used to discover the solution for several real life problems.
The official learning outcome for this course is: Upon successful completion of the course the students:
• Must know the basic concepts related JAVA programming language.
• Must know how to write, compile, run and develop java applications.
A combination of lectures and practical sessions will be used in this course in order to achieve the aim of the course.
By MSc. Karwan Mustafa Kareem
This slide includes: Control Flow and Functions.
That is Boolean values and operators.
It include Iteration,Fruitful functions,Scope of Variable and Modules.
The C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system.
The C is the most widely used computer language, it keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers.
Cosmetics Shop Management System is a complete solution for managing a Shop, in other words, an enhanced tool that assists in organizing the day-to-day activities of a Shop. There is the need of an application for efficient management and handling customer orders. This Cosmetics Shop Management System keeps every record Shop and reducing paperwork
The Computer Shop System is designed & developed for a computer shop to manage their records of selling and purchasing of the computer parts from the dealers and sell them to the customers. This system makes the work of the computer shopkeepers easy as it keeps all the records of the computer product and also keep the records of the product that is sold to the customers.
Development of an interactive car sale system which lets a user to find a car and its details is the main objective of this project. The administrators can access, enter, modify and delete the details of every car. Administrators are responsible of maintaining the details of vehicles like the Manufacturer information,
Python Project book shop system.This project BOOKSHOP SYSTEM includes some facilities for the retail book shop to maintain records of the books and also search, display, modification, delete etc the books available. This software searches the books data which is store in the record.
WHAT IS FUNCTION? WHY WE NEED FUNCTION.
TYPES OF FUNCTIONS
BUILT IN FUNCTIONS
int() , str(), float(), eval(), abs(),pow(), type() , round(),
modules in python,
Mat modules
pi, ceil(),pow(),floor(),sqrt(), sin(), cos() , tan()
NATURAL ENVIRONMENT,CATEGORIES OF RESOURCES,NATURAL RESOURCES,RENEWABLE AND NON-RENEWABLE,EXHAUSTIBLE , NON-EXHAUSTIBLE RESOURCES,HOW ENVIRONMENT IS CRUCIAL FOR US
WHAT IS DICTIONARY IN PYTHON?
HOW TO CREATE A DICTIONARY
INITIALIZE THE DICTIONARY
ACCESSING KEYS AND VALUES FROM A DICTIONARY
LOOPS TO DISPLAY KEYS AND VALUES IN A DICTIONARY
METHODS IN A DICTIONARY
TO WATCH VIDEO OR PDF:
https://computerassignmentsforu.blogspot.com/p/dictinpyxii.html
introduction to boolean logic,truth table and types of forms in truth table , evaluate the expression using truth table
to download pdf:
https://computerassignmentsforu.blogspot.com/p/booleanclassxi.html
To watch video:
https://youtu.be/OrszQmx0BWQ
INTRODUCTION TO SELECTION SORT AND WORKING OF SELECTION SORT
TO WATCH VIDEO:
https://youtu.be/RlLn7tMiD3g
TO DOWNLOAD PDF:
https://computerassignmentsforu.blogspot.com/p/classxiiselectionsort.html
convert mixed decimal number to mixed binary
convert mixed octal number to mixed binary number
convert mixed hexadecimal number to mixed binary number
TO WATCH VIDEO:
https://youtu.be/6k50fmt2IQI
CONVERT FRACTIONAL BINARY NUMBER TO FRACTIONAL DECIMAL NUMBER
CONVERT MIXED BINARY NUMBER TO MIXED DECIMAL NUMBER
CONVERT MIXED BINARY NUMBER TO MIXED OCTAL NUMBER
CONVERT MIXED BINARY NUMBER TO MIXED HEXADECIMAL NUMBER
TO WATCH VIDEO:
https://youtu.be/V6Eqyg504aA
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
2. if .. else Statement
The if ..else.. statement is used to test a specific condition. If the condition is true , a
block of code or block of statements will be executed, otherwise false section statement
will be executed
Syntax:
if condition or expression:
-----Statements-------
-----Statements-------
else:
-----Statements-------
-----Statements-------
This is True
part of if
condition
This is False
part of if
condition
3. Let us understand how the if..else work
F the question is to check the user input age is more than equal to 18 or not, if yes
than display “Valid to Vote” , otherwise display “Not valid to vote”
age=int(input(“Enter the age:”))
if (age>=18):
print(“Valid to vote”)
print(“Valid to vote”)
else:
Enter the age: 20
Valid to vote
If the condition is TRUE
If the condition is False
4. Let us understand how the if..else work
Program to accept number from user and check that number is positive or
negative.
no=int(input(“Enter the no:”))
if (no>0):
print(“It’s a positive value”)
print(“It’s a negative value”)
else:
Enter the no: -9
It’s a negative value
5. Let us understand how the if..else work
Program to accept number from user and check that number is even or
odd.
no=int(input(“Enter the no:”))
if (no%2==0):
print(“It’s a Even number”)
print(“It’s a Odd number”)
else:
Enter the no: 5
It’s a Odd number
Enter the no: 2
It’s a Even number
6. Let us understand how the if..else work
Program to accept number from user and check that number is divisible by
3 or 7 or not
no=int(input(“Enter the no:”))
if (no%3==0 or no%7==0):
print(“Number is divisible by 3 or 7”)
print(“Number is not divisible by 3 or 7”)
else:
Enter the no: 15
Number is divisible by 3 or 7
7. Let us understand how the if..else work
Program to accept year from user and check that year is a leap year or not.
Example : year is leap year if it is divisible by 4 or 400 or 100
yy=int(input(“Enter the year:”))
if (yy%4==0 or yy%400==0 or yy%100!=0):
print(“It’s a leap year”)
print(“Its not a leap year”)
else:
Enter the year:2005
A year is said to be leap year, if the year is exactly divisible by 4 but and not
divisible by 100. Year is also a leap year if it is exactly divisible by 400.
8. Let us understand how the if..else work
Program to accept number and find maximum between two numbers
a=int(input(“Enter the value a:”))
if (a>b):
print(“A greater than B”)
print(“B is greater than A”)
else:
Enter the value a: 5
Enter the value b: 2
A is greater than B
b=int(input(“Enter the value b:”))