0% found this document useful (0 votes)
10 views7 pages

Python Programming Basics Explained

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 DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

Python Programming Basics Explained

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 DOCX, PDF, TXT or read online on Scribd

Introduction to Programming :-

PYTHON

I] Define the Following:-

a]Function:-

_________________________________________________________

_________________________________________________________

_________________________________________________________

b]Parameter:-

_________________________________________________________

_________________________________________________________

_________________________________________________________

c]Syntax:-
_________________________________________________________

_________________________________________________________

_________________________________________________________
d]String:-
_________________________________________________________

_________________________________________________________

_________________________________________________________

II] Identify the Parts of Python Code


Spot the Function, Parameter, and String

Q-1

Hello = 'Greetings'
print(Hello)
outp

Function: print

Parameter: Hello

String: 'Greetings'
Q-2

print("Welcome to Python")

Function: __________

Parameter: __________

String: __________

Q-3

print('My name is Alex')

Function: __________

Parameter: __________

String: __________

Q-4
message = "Python is fun"
print(message)

Function: __________

Parameter: __________

String: __________

Q-5

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

Function: __________

Parameter: __________

String: __________

Q-6
print('Goodbye!')

Function: __________

Parameter: __________

String: __________

Q-7

title = "Learning Python"


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

Function: __________

Parameter: __________

String: __________

Q-8
print("Hello", "World")

Function: __________

Parameter: __________

String: __________

Q-9

name = "Sam"
print("My name is", name)

Function: __________

Parameter: __________

String: __________

Q-10
greeting = 'Hi there'
print(greeting, "everyone!")

Function: __________

Parameter: __________

String: __________

Q-11

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

Function: __________

Parameter: __________

String: __________

You might also like