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

Assignment-01(Variables, String, Int, Float)

The document outlines various topics related to Python programming, including key features, data types, variable scopes, and the importance of comments. It also includes programming exercises that cover string manipulation, mathematical calculations, and algorithms such as checking for prime numbers. Overall, it serves as a guide for understanding fundamental Python concepts and practical coding tasks.

Uploaded by

Richa Chaudhary
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
2 views1 page

Assignment-01(Variables, String, Int, Float)

The document outlines various topics related to Python programming, including key features, data types, variable scopes, and the importance of comments. It also includes programming exercises that cover string manipulation, mathematical calculations, and algorithms such as checking for prime numbers. Overall, it serves as a guide for understanding fundamental Python concepts and practical coding tasks.

Uploaded by

Richa Chaudhary
Copyright
© © All Rights Reserved
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/ 1

Topics: Variables, String, int, float

1. What are the key features of Python?


2. What are the Data Types in Python?
3. What are local variables and global variables in Python?
4. How do you write comments in python? And Why Comments are important?

5. How to comment on multiple lines in python?


6. What do you mean by Python literals?
7. What are different ways to assign value to variables?
8. What are the Escape Characters in python?
9. Which are the different ways to perform string formatting? Explain with example.
10. Write a program to print every character of a string entered by the user in a new
line using a loop
11. Write a program to find the length of the string "machine learning" with and
without using len function.
12. Write a program to check if the word 'orange' is present in the "This is orange
juice".
Write a Python program to reverse words in a string
33. Write a Python program to swap cases of a given string
34. Write a Python program to remove spaces from a given string 35. Write a
Python program to remove duplicate characters of a given string 36. Write a
Python Program to find the area of a circle
37. Python Program to find Sum of squares of first n natural numbers
38. Python Program to find cube sum of first n natural numbers 39.
Python Program to find simple interest and compound interest 40.
Python program to check whether a number is Prime or not

You might also like