-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDay1.py
69 lines (57 loc) · 1.45 KB
/
Day1.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
print('hello world')
print("mr shahidul islam")
print('$' * 5)
# -------------------
price = 10
print(price)
price = 5.1
print(price)
# ------------------
name = 'john smith'
age = 20
is_new = True
# --------------------
name = input('what is your name? ')
print('hey there, ' + name)
# -------------------------
name = input('hi there! what is your name? ')
color = input('and what is your favorite color? ')
print(name + ' likes '+color)
# ----------------------------
birth_year = input ('birth year: ')
print(type(birth_year))
age = 2024 - int (birth_year)
print(type(age))
print(age)
# -----------------------------
your_weight = input('enter your weight in pound: ')
weight = (float(your_weight)*0.45359237)
print(weight)
# -----------------------------
course1 = " python's course for beginners "
course2 = ' python course for "beginners" '
print(course1)
print(course2)
# ---------------------------
course = '''
Hi Shahid,
here is our first email program.
thank you,
the support team.
'''
print(course)
# ------------------
course = 'python for the beginners'
another = course[:]
print(course[0])
print(course[7])
print(course[-2]) #from reverse string
print(course[0:4])
print(another)
# -------------------------------------
name = 'Jennifer'
print(name[1:-1])
# ------------------------------end of day 1----------------------
# https://youtu.be/_uQrJ0TkZlc?si=yG-ntCiZVgKV6fGQ&t=2260
# ------------------------------28-May-2024--------------------------
#