0% found this document useful (0 votes)
30 views6 pages

Code2pdf 672e039c27b55

Uploaded by

atharvasingh08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views6 pages

Code2pdf 672e039c27b55

Uploaded by

atharvasingh08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Python 3.13.0 (tags/v3.13.0:60403a5, Oct 7 2024, 09:38:07) [MSC v.

1941 64 bit (
Type "help", "copyright", "credits" or "license()" for more information.

========================= RESTART: E:\Notepad++\new.py =========================


Enter the first integer: 10
Enter the second integer: 20
The sum of 10 and 20 is: 30

======================== RESTART: E:\Notepad++\new 1.py ========================


Enter marks for subject 1 (out of 100): 70
Enter marks for subject 2 (out of 100): 79
Enter marks for subject 3 (out of 100): 69
Total Marks: 218.0 out of 300
Percentage: 72.67%

======================== RESTART: E:\Notepad++\new 2.py ========================


Enter the Principal amount: 10,000\
Traceback (most recent call last):
File "E:\Notepad++\new 2.py", line 2, in <module>
principal = float(input("Enter the Principal amount: "))
ValueError: could not convert string to float: '10,000\\'

======================== RESTART: E:\Notepad++\new 2.py ========================


Enter the Principal amount: 10000
Enter the Rate of Interest (as a percentage): 5
Enter the Time period (in years): 10
Simple Interest: 5000.00

======================== RESTART: E:\Notepad++\new 3.py ========================


Enter a number: 900
The number 900 is Even.

======================== RESTART: E:\Notepad++\new 3.py ========================


Enter a number: 401
The number 401 is Odd.

======================== RESTART: E:\Notepad++\new 4.py ========================


Enter the first number: 1000
Enter the second number: 2003
Enter the third number: 4024
The largest number is 4024.
The smallest number is 1000.

================================================================== RESTART: E:\Notepa


Enter a year: 3036
The year 3036 is a leap year.

================================================================== RESTART: E:\Notepa


Enter a year: 3030
The year 3030 is not a leap year.
================================================================== RESTART: E:\Notepa
Enter a number: 4003
Multiplication Table for 4003:
4003 x 1 = 4003
4003 x 2 = 8006
4003 x 3 = 12009
4003 x 4 = 16012
4003 x 5 = 20015
4003 x 6 = 24018
4003 x 7 = 28021
4003 x 8 = 32024
4003 x 9 = 36027
4003 x 10 = 40030

================================================================== RESTART: E:\Notepa


*
* *
* * *
* * * *
* * * * *

================================================================== RESTART: E:\Notepa


1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

================================================================== RESTART: E:\Notepa


A B C D E
A B C D
A B C
A B
A

================================================================= RESTART: E:\Notepad


Enter a string: bharat
Indices of vowels in the string:
Vowel 'a' found at index 2
Vowel 'a' found at index 4

================================================================= RESTART: E:\Notepad


Enter a string: Mahito
Converted string: mAHITO

================================================================= RESTART: E:\Notepad


Enter your username: Itadori
Enter your password: Samayrainaa
Username not found. Please try again.

================================================================= RESTART: E:\Notepad


Enter your username: user1
Enter your password: password1
Login successful!

================================================================= RESTART: E:\Notepad


Your 6-digit OTP is: 228620

================================================================= RESTART: E:\Notepad


Enter your username: Itadori
Do you want a random password (y/n)? y
RANDOM PASSWORD is: 540156
YOUR USERNAME IS: Itadori
YOUR PASSWORD IS: 540156

================================================================= RESTART: E:\Notepad


Enter your username: Samay Raina
Do you want a random password (y/n)? n
Enter your own password: SupremeLeader
YOUR USERNAME IS: Samay Raina
YOUR PASSWORD IS: SupremeLeader

================================================================= RESTART: E:\Notepad


Enter numbers separated by spaces: 1 2 574 18 90 36
The largest number is: 574
The smallest number is: 1

================================================================= RESTART: E:\Notepad


Enter a string: hello
The string is not a palindrome.

================================================================= RESTART: E:\Notepad


Enter a string: madam
The string is a palindrome.

================================================================= RESTART: E:\Notepad


Enter a string: A man a plan a canal Panama
The string is a palindrome.

================================================================= RESTART: E:\Notepad

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 3
Enter customer ID to delete:
================================================================= RESTART: E:\Notepad
Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 2
Enter customer ID: newuser11
Enter customer name: atharva
Enter customer phone number: 9004045557
Customer added successfully.

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 1
Customer Records:
ID: newuser11, Name: atharva, Phone: 9004045557

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 2
Enter customer ID: newuser12
Enter customer name: siya
Enter customer phone number: 30302083
Customer added successfully.

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 2
Enter customer ID: newuser10
Enter customer name: jay
Enter customer phone number: 99889786
Customer added successfully.

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 3
Enter customer ID to delete: newuser11
Customer with ID newuser11 deleted successfully.

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 1
Customer Records:
ID: newuser12, Name: siya, Phone: 30302083
ID: newuser10, Name: jay, Phone: 99889786

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 4
Enter customer ID to search: newuser10
ID: newuser10, Name: jay, Phone: 99889786

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 5
Enter customer ID to update: newuser10
Enter new name: jayesh
Enter new phone number: 9676554568
Customer with ID newuser10 updated successfully.

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 6
Sorted Customer Records:
ID: newuser10, Name: jayesh, Phone: 9676554568
ID: newuser12, Name: siya, Phone: 30302083

Menu:
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
Enter your choice: 7
Exiting program.

You might also like