File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ #===================================================================
2+ # PRINT()
3+ # ---------------------------------------
4+ # ......
5+ # ......
6+ #===================================================================
7+
8+ print ("Hi Python" )
9+ print ('Hello Python' )
10+ # print("Hi')
11+
12+ print ("--------------------" )
13+ print (" LEARN PYTHON " )
14+ print ("--------------------" )
15+
16+ print (" __" )
17+ print (" / _)" )
18+ print (" .-^^^-/ / " )
19+ print ("__/ / " )
20+ print ("<__.|_|-|_| " )
21+
22+ # Escape Sequences
23+ # \"
24+ # \'
25+ # print("Hi "Python"")
26+ print ("Hi \" Python\" " )
27+ print ('Hi ' Python '' )
28+ print ('Hi "Python"' )
29+ print ('Hi ' Python '' )
30+ print ('Hi \' Python\' ' )
31+
32+ # \\
33+ print ("Path: C:\Users\Baraa" )
34+ print ("Path: C:\\ Users\\ Baraa" )
35+
36+ # \n New Line
37+ print ("Message1" )
38+ print ()
39+ print ("Message2" )
40+
41+ print ("Message1\n " )
42+ print ("Message2" )
43+
44+ print ("Message1\n \n \n Message2" )
45+
46+ print ("Message1\n Message2" )
47+
48+ # \t New Line
49+ print ("Message1\t Message2" )
50+
51+ print ("Your learning Path:\n \t -Python Basics\n \t -Data Engineering\n \t -AI" )
52+
53+ print ("""Your learning Path:
54+ \t - Python Basics
55+ \t - Data Engineering
56+ \t - AI""" )
57+
58+ # Why we need really PRINT()
59+ price_shirt = 25.00
60+ price_jeans = 45.50
61+
62+ qty_shirt = 2
63+ qty_jeans = 1
64+
65+ total_shirt = price_shirt * qty_shirt
66+ total_jeans = price_jeans * qty_jeans
67+ subtotal = total_shirt + total_jeans
68+ print ("Subtotal:" , subtotal )
69+ discount = subtotal * 0.10
70+ print ("Discount:" , discount )
71+ final_total = subtotal - discount
72+ print ("Final Total:" , final_total )
You can’t perform that action at this time.
0 commit comments