-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeneral_Notes.py
More file actions
59 lines (47 loc) · 1.45 KB
/
Copy pathGeneral_Notes.py
File metadata and controls
59 lines (47 loc) · 1.45 KB
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
""" _______________________________ """
#!""" Python Notes!! """
""" You can use { #... } for inline comments
And { """ """ } for multiline comments """
# inline comments
"""
multiline comments
"""
# Using Better Comments for
# * --> Important information us highlighted
# ! --> Deprecated method, do not use
# ? --> Question
# TODO --> Test case
# // --> Unimportant or Wrong note
""" _______________________________ """
#!""" Print (new line/tab/'/") """
""" to print new line use \n """
""" to print " use \" """
""" to print ' use \' """
""" to print tab use \t """
""" _______________________________ """
#!""" To print something in terminal you can use { print("...") } """
print("Hi Hope, please draw triangle")
print(" /|")
print(" / |")
print(" / |")
print(" / |")
print(" / |")
print("/_____|")
""" _______________________________ """
#!""" To convert python file to exe file """
#* First Method
#? Open the folder
#? Click shift with right click
#? Click --> Open PowerShell window here
#? Run --> pip install pyinstaller // py -3.10 -m pip install pyinstaller
#? Run --> pyinstaller --onefile 'file_name.py'
#* Second Method
#? Open the folder
#? Click shift with right click
#? Click --> Open PowerShell window here
#? Run --> pip install auto-py-to-exe // py -3.10 -m pip install auto-py-to-exe
#? Run --> auto-py-to-exe
#? Browse the file
#? Select --> one file
#? Click --> Convert .py to .exe
""" _______________________________ """