Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

handwritten notes pps engineering

Rating
-
Sold
-
Pages
5
Uploaded on
20-06-2024
Written in
2023/2024

PPS (Post-Postscriptum) handwritten notes are extra comments added after a document's main content. They're handwritten to emphasize crucial information, clarify points, or provide additional insights. They enrich understanding by addressing specific queries or expanding on complex ideas that the primary text might not fully cover. In sales, PPS notes can highlight special offers, personalize messages to potential buyers, or reinforce key selling points. They add a personal touch, enhancing communication effectivenconnection with customers. PPS handwritten notes are versatile tools in sales strategies, ensuring clarity and boosting engagement through tailored, informative additions to sales communications.

Show more Read less
Institution
Course

Content preview

PPS Programs asked for End-Sem University Exam


Unit 3

1. Write a program to swap two numbers using a function.
def swapping():
a=10
b=20
temp = a
a=b
b = temp
print("Value of a after swapping",a)
print("Value of b after swapping",b)
swapping()


2. Write python program using function to find greatest of three
numbers by passing numbers as argument
def largest(x,y,z):
if x>y and x>z:
print("largest number is",x)
elif y>x and y>z:
print("largest number is",y)
else:
print("largest number is",z)
largest(200,300,100)

3. Write python program using function to find whether number is odd
or even.
a=int(input("Enter Number"))
def oddeven():
if a%2==0:
print("Number is even")
else:
print("Number is odd")
oddeven()

, 4. Write a Program to find a cube of number using lambda function.
a=lambda x:x**3
print(a(3))


5. Write a Program to perform addition of two number using lambda
function.
total=lambda
a,b:a+b
print(total(10,20))


6. Write a program to check whether a given number is prime or not using
function.

num=int(input("Enter a number: "))
def prime():
if num>1:
for i in range(2,num):
if(num % i) == 0:
print(num,"is not a prime number")
break
else:
print(num,"is a prime number")
else:
print(num,"is not a prime number")
prime()

Written for

Institution
Course

Document information

Uploaded on
June 20, 2024
Number of pages
5
Written in
2023/2024
Type
Class notes
Professor(s)
Sid gunjal
Contains
All classes

Subjects

$3.89
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
sidgunjal

Get to know the seller

Seller avatar
sidgunjal avcoe
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions