Hello Friends.๐
We have Learned the Basics of Python Programming Language in Our Previous Blog.
"Now In this Blog, We will learn to make Simple Programs in Python Programming Language."
Python Two Digit value Swapping Program Using Third Variable.
Program
no1=int(input("Enter First Value = "))
no2=int(input("Enter Second Value = "))
no3=no1
no1=no2
no2=no3
print("First Value = ",no1)
print("Second Value = ",no2)
Output
Enter First Value = 44
Enter Second Value = 55
First Value = 55
Second Value = 44
Python Two Digit value Swapping Program Without Using Third Variable...
Program
no1=int(input("Enter First Value = "))
no2=int(input("Enter Second Value = "))
no1=no1+no2
no2=no1-no2
no1=no1-no2
print("First Value = ",no1)
print("Second Value = ",no2)
Output
Enter First Value = 15
Enter Second Value = 35
First Value = 35
Second Value = 15
If You want to Know the Basics of Python Programming Language then Click On this Link- Learn Basics of Python
- Learn Hello-World Program in Python
- Learn Swapping Program in Python
- Learn Palindrom Number Program in Python
- Learn Prime Number Program in Python
- Learn about Loops & his Program Example
- Learn How to Find Value type in Python
If You want to Know about Information Technology or It Technology, Then Click on the Link given above.
If you want to see our privacy policy then you can click on this link.
Hope, You Enjoy this Our Blogs on Python Language.๐
Grow up ๐
ReplyDeletegreat
ReplyDeleteGood Brother
ReplyDelete