-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathAssingment 1.py
More file actions
27 lines (20 loc) · 927 Bytes
/
Assingment 1.py
File metadata and controls
27 lines (20 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 22 05:01:33 2023
@author: Admin
"""
# question (1a)
print ('\n\n', "---------------------Questin 1a-------------------------- ",'\n')
name ="sadiq"
print("Hello ", name , "I am taking some phyton classes ")
print("Hello ", name.upper() , "I am taking some phyton classes ")
print("Hello ", name.title() , "I am taking some phyton classes ")
print ('\n\n', "---------------------Questin 1b-------------------------- ",'\n')
famous_person = "Aristotle"
message= '"he who has never learned to obey cannot be a good commander"'
print(famous_person, "once said, ", message.title())
# question (1c)
print ('\n\n', "---------------------Questin 1c-------------------------- ",'\n')
classMates = ['Nuhu ','Zannah','Umar ', 'Najeeb','Shehu']
for i in classMates:
print("Hi!", i, "\t\t"'" Submit your assingment before 03 December, 2023"')