0% found this document useful (0 votes)
29 views7 pages

Python Output 1-30-1

Python output file

Uploaded by

27adityajha27
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)
29 views7 pages

Python Output 1-30-1

Python output file

Uploaded by

27adityajha27
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/ 7

What is your name?

Isha Sehgal How old


are you? 20
Hello, Isha Sehgal! You are 20 years old.

Please enter your age: 20


You are eligible to vote in the next election!

Please enter your age: 17


Sorry, you are not old enough to vote in the next election.

Enter a number to calculate its factorial


Factorial is not defined for negative numbers.

Enter a number to calculate its factorial : 5


The factorial Of 5 is 120
Please enter the radius of the circle:
21
The area of the circle with radius 21
.0 is : 1385.4424

nter First Number•. Enter First Number: a


1 nter Second
Invalid Input Please Input
Number: ivision by
zero Integer.. .
Enter the number of elements: 3
2
-2
-22
Original List: [2, -2, -22] Sorted List: ( 22 -
2, 2]
Enter a string: Python Is an Interpreted language
Reversed string: egaugnal deterpretni na si nohtyP
Code Execution Successful

Car Info:
Make: Toyota
Model: Corolla
Year: 2020

Code Execution Sueeess ful

output.json >
1
2

3 "Size" • IIExtra Smatt"

4 "Abbreviated Size" : iixSi•


5

"Size " '. Small",


8 "Abbreviated

11"Size": 'IMediumL',
12"Abbreviated Size": I
Bize 'M"
13
14
15"Size": 'Targe" ,
1 16"Abbreviated Size"
2 Extra Small LAbbreviated Size 17
xs
3 Small 1B
4 Medium 19"Size'" : "'Extra Large",
5 La rge 20"Abbreviated Size": "XL
21
6 Extra Large XL 22
c D
0 A Light in the Attic https://books.toscra pe.com/t 51.77 In stock
1 Tipping the Velvet https://books.toscra pe.com/t 53.74 In stock
2 Soumission https://books.toscrape.com/i 50.1 In stock
3 Sharp Objects https://books.toscrape.com/( 47.82 In stock
4 Sapiens; A Brief History of Human https;//books.toscra pe.com/( 54,23 'n stock
5 The Requiem Red https://books.toscra pe.C22.65 In stock

6 The Dirty Little Secrets Of Getting https://books.toscrape.com/t 33.34 In stock 7 The


Coming Woman; A Novel Bas' https;//books.toscra pe.com/t 17.93 In stock g The Boys in
the Boat: Nine Americ https://books.toscrape.com/t 22.6 In stock 9 The Black Maria
https://books.toscrape.corn/t 52.15 In stock
10 Starving Hearts (Triangular Trade https://books.toscrape.com/( 13,99 In stock
Rohit Sharma Vs Virat Kohli Career Comparison

2008 2010 2012 2014 2016


Season

Server is listening on 127.0.0.1 port 12345


Connection established with ( '127.0. O. 1 ' ,
59745)
Received data from client: Hello from the client!
sat Apr 27 1ST 2024

process exited - Return Code:


Press Enter to exit terminal
After appending elements: [1, 2, 3]
After removing element 2: [1, 3]
After popping the first element.

process exited Return Code:


Press Enter to exit terminal
First element : 1
Last element : banana
Elements of the tuple:
1
2
3
apple
banana
Unpacked values: 1 2 3 apple banana Concatenated
tuple:
Slice of tuple: (3, ' apple')
'
Index of 'banana
Count of 'apple' : 1

process exited Return Code:


Press Enter to exit terminal
Name: John Age •gender'
:
: 'Nale•)
Modified dictionary: {'name' : 'John', 'age': 35, 'city': 'New York
% Dictionary after removal; name • ; • Oohn
Keys ane Values:
name ; John sender

True
;

Process exited - Return Code:


Press Enter to exit termi nal
37.5 degrees Celsius is equal to 99.50 degrees Fahrenheit
100.4 degrees Fahrenheit is equal to 38, 00 degrees Celsius
Enter the length Of side a: 23
Enter the length of side b: 56
Enter the length of side c: 32
The triangle with sides 23.0, 56.0, and 32.0 is not a right triangle.
Employee name: Nikhil Employee
position: Developer
The Roman numeral representation ot 3549 MMMDXLIX

is
lement 5 found at index 4

Code E-xecution Successful


Original string: Hello World
Reversed string word by word : World Hello

Code Execution Successful


Element 15 found at index 4

Code Execution Successful


Sorted array is : [5, 6, 11 , 12, 13]
Code Execution Successful
Sorted array is : [11 , 12, 22, 25, 64] Code
Execution Successful -9

M di fr A to c
A to
ov o C to
e sk
m A to
M di 2 B c
ov
e sk fro
M di c
m
ov B to c
e sk fro A to
M di m3
ov
e
sk fro
M di m
ov
sk fro
e
di m
M
ov sk 2
e fro
M di m [30, 24, 18]
ov sk fro [84 , 69, 54]
e
m [138, 114, 90]

You might also like