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: __________