0% found this document useful (0 votes)
2 views

python basics question paper

The document contains a list of assignment questions related to Python basics, covering topics such as Python's popularity, interpreters, keywords, mutability, operators, loops, and conditional statements. It also includes practical programming tasks that require writing Python code to demonstrate various concepts like type casting, keyword checking, and loop usage. The document serves as a guide for learning and applying fundamental Python programming skills.

Uploaded by

vipdropshipco
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

python basics question paper

The document contains a list of assignment questions related to Python basics, covering topics such as Python's popularity, interpreters, keywords, mutability, operators, loops, and conditional statements. It also includes practical programming tasks that require writing Python code to demonstrate various concepts like type casting, keyword checking, and loop usage. The document serves as a guide for learning and applying fundamental Python programming skills.

Uploaded by

vipdropshipco
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python Basics

Assignment Questions
Python Basics Questions

What is Python, and why is it popular


What is an interpreter in Python
What are pre-defined keywords in Python
Can keywords be used as variable names
What is mutability in Python
Why are lists mutable, but tuples are immutable
What is the difference between “==” and “is” operators in Python
What are logical operators in Python
What is type casting in Python
What is the difference between implicit and explicit type casting
What is the purpose of conditional statements in Python
How does the elif statement work
What is the difference between for and while loops
Describe a scenario where a while loop is more suitable than a for loop.

Practical Questions
Write a Python program to print "Hello, World!
Write a Python program that displays your name and age
Write code to print all the pre-defined keywords in Python using the keyword library
Write a program that checks if a given word is a Python keyword
Create a list and tuple in Python, and demonstrate how attempting to change an element works differently
for each
Write a function to demonstrate the behavior of mutable and immutable arguments
Write a function to demonstrate the behavior of mutable and immutable arguments
Write a program to demonstrate the use of logical operators
Write a Python program to convert user input from string to integer, float, and boolean types
Write code to demonstrate type casting with list elements
Write a program that checks if a number is positive, negative, or zero
Write a for loop to print numbers from 1 to 10
Write a Python program to find the sum of all even numbers between 1 and 50
Write a program to reverse a string using a while loop
Write a Python program to calculate the factorial of a number provided by the user using a while loop.

Java
Pwskills
+ DSA

You might also like