Age, Address in Three Different Lines.: Test Data: X 4, y 3 Expected Output: (4 + 3) 2) 49
The document provides instructions for 49 Python programs involving tasks like displaying details in multiple lines, solving mathematical expressions, computing future values, finding distances between points, checking if a file exists, determining operating system and CPU details, parsing strings, and listing files in a directory. Each program is accompanied by a link to an editor to write the code and see sample solutions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
134 views
Age, Address in Three Different Lines.: Test Data: X 4, y 3 Expected Output: (4 + 3) 2) 49
The document provides instructions for 49 Python programs involving tasks like displaying details in multiple lines, solving mathematical expressions, computing future values, finding distances between points, checking if a file exists, determining operating system and CPU details, parsing strings, and listing files in a directory. Each program is accompanied by a link to an editor to write the code and see sample solutions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
37.
Write a Python program to display your details like name,
age, address in three different lines. Go to the editor Click me to see the sample solution
38. Write a Python program to solve (x + y) * (x + y). Go to the
editor Test Data : x = 4, y = 3 Expected Output : (4 + 3) ^ 2) = 49 Click me to see the sample solution
39. Write a Python program to compute the future value of a
specified principal amount, rate of interest, and a number of years. Go to the editor Test Data : amt = 10000, int = 3.5, years = 7 Expected Output : 12722.79 Click me to see the sample solution
40. Write a Python program to compute the distance between
the points (x1, y1) and (x2, y2). Go to the editor Click me to see the sample solution
41. Write a Python program to check whether a file exists. Go
to the editor Click me to see the sample solution
42. Write a Python program to determine if a Python shell is
executing in 32bit or 64bit mode on OS. Go to the editor Click me to see the sample solution 43. Write a Python program to get OS name, platform and release information. Go to the editor Click me to see the sample solution
44. Write a Python program to locate Python site-
packages. Go to the editor Click me to see the sample solution
45. Write a python program to call an external command in
Python. Go to the editor Click me to see the sample solution
46. Write a python program to get the path and name of the
file that is currently executing. Go to the editor Click me to see the sample solution
47. Write a Python program to find out the number of CPUs
using. Go to the editor Click me to see the sample solution
48. Write a Python program to parse a string to Float or
Integer. Go to the editor Click me to see the sample solution
49. Write a Python program to list all files in a directory in
Python. Go to the editor Click me to see the sample solution