-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
27 lines (15 loc) · 654 Bytes
/
main.py
File metadata and controls
27 lines (15 loc) · 654 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
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
print(f'Hi, {name}')
print("print via print line in quotes " + name)
def input_print(input_user):
print(input_user)
if __name__ == '__main__':
print_hi('AshFirst Code')
input_user = input("enter name")
input_print(input_user)
Fruits=["Apple","Mango","Banana","Kiwi","Watermelon"]
print(Fruits[1:-1]) # -1 means index of last element
# See PyCharm help at https://www.jetbrains.com/help/pycharm/