0% found this document useful (0 votes)
4 views1 page

Machine Exercise 1

Uploaded by

riyavermma18
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)
4 views1 page

Machine Exercise 1

Uploaded by

riyavermma18
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/ 1

Programming in Python Lab (AGCS-21407)

B.Tech(CSE) – IV – 2 Batch 2023-2027


Machine Exercise-1 [CO1]

1. Write a program to identify data type and conversion between data types
(take input from the user)
2. Write a program to find the largest of three numbers
3. Write a program to check if a number is prime or not
4. Write a program to display the numbers of a series 1,4,9,16,25…n by using
for loop (The series should not exceed the input number)
5. Write a program to check if a string is palindrome
6. Write a program for the following output:
Number Square Cube
1 1 1
2 4 8
3 9 27
4 16 64
…..

7. Write a program to print the first 10 numbers in the Fibonacci sequence


using a for loop.
8. Write a program for right-angled triangle pattern
9. Write a program to create a Simple Calculator
10.Write a program to read the password from the user. If the user types the
correct password, i.e. “Python” then display the message, “Welcome to
Python Programming”
Note: Only three attempts are required.

You might also like