0% found this document useful (0 votes)
4 views2 pages

Python Basics In-Class Assignment

This document outlines an in-class assignment consisting of 13 programming questions. The questions cover basic concepts such as variable definition, comments, data types, lists, tuples, sets, dictionaries, functions, and control flow statements. The assignment is intended for students to practice fundamental programming skills.

Uploaded by

carrollj3
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 views2 pages

Python Basics In-Class Assignment

This document outlines an in-class assignment consisting of 13 programming questions. The questions cover basic concepts such as variable definition, comments, data types, lists, tuples, sets, dictionaries, functions, and control flow statements. The assignment is intended for students to practice fundamental programming skills.

Uploaded by

carrollj3
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

inclass_assignment_2

September 11, 2025

In-Class Assignment 2
Name:
[ ]: # QUESTION 1
# Define a variable with the value 10. Print the value of the variable.

[ ]: # QUESTION 2
# Create a one line comment with the text 'This is my one line comment'.

[ ]: # QUESTION 3
# Create a multi-line comment with the text 'The goal of my multi-line comment

[ ]: # QUESTION 4
# What happens if you use the same name as the variable defined above?

[ ]: # QUESTION 5
# Determine the type of the variable.

[ ]: # QUESTION 6
# Define a list.

[ ]: # QUESTION 7
# Define a tuple.

[ ]: # QUESTION 8
# Define a set.

[ ]: # QUESTION 09
# Define a dictionary.

[ ]: # QUESTION 10
# Define a function that takes two numbers and returns the multiplication value␣
↪of two numbers

[ ]: # QUESTION 11
# Write an IF statement.

1
[ ]: # QUESTION 12
# Write an IF not statement.

[ ]: # QUESTION 13
# Loop through a string of your name.

You might also like