0% found this document useful (0 votes)
6 views3 pages

Python Worksheet Answers Rearranged

The document contains answers to a Python worksheet with various print statements. Each question includes the code, the function parameters, and the strings being printed. The answers demonstrate basic Python syntax and string manipulation.

Uploaded by

salman.shariff
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)
6 views3 pages

Python Worksheet Answers Rearranged

The document contains answers to a Python worksheet with various print statements. Each question includes the code, the function parameters, and the strings being printed. The answers demonstrate basic Python syntax and string manipulation.

Uploaded by

salman.shariff
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

Python Worksheet - Answers

Q-1

Hello = 'Greetings'

print(Hello)

Funct

Parameter: Hello

String: 'Greetings'

Q-2

print("Welcome to Python")

Funct

Parameter: "Welcome to Python"

String: "Welcome to Python"

Q-3

print('My name is Alex')

Funct

Parameter: 'My name is Alex'

String: 'My name is Alex'

Q-4

message = "Python is fun"

print(message)

Funct

Parameter: message

String: "Python is fun"

Q-5

print("2 + 3 =", 2 + 3)

Funct

Parameter: "2 + 3 =", 2 + 3

String: "2 + 3 ="


Q-6

print('Goodbye!')

Funct

Parameter: 'Goodbye!'

String: 'Goodbye!'

Q-7

title = "Learning Python"

print("Today's topic:", title)

Funct

Parameter: "Today's topic:", title

String: "Today's topic:"

Q-8

print("Hello", "World")

Funct

Parameter: "Hello", "World"

String: "Hello", "World"

Q-9

name = "Sam"

print("My name is", name)

Funct

Parameter: "My name is", name

String: "My name is"

Q-10

greeting = 'Hi there'

print(greeting, "everyone!")

Funct

Parameter: greeting, "everyone!"

String: 'Hi there', "everyone!"


Q-11

print("Python", "is", "awesome")

Funct

Parameter: "Python", "is", "awesome"

String: "Python", "is", "awesome"

You might also like