-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathteletyping.py
More file actions
63 lines (50 loc) · 1.08 KB
/
teletyping.py
File metadata and controls
63 lines (50 loc) · 1.08 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
60
61
62
63
# x is a variable
# it's type is an integer
x = 5
y = 2 * x
# you can add integers together like a normal math equation
z = 2 * (y + x)
# print() is a function
# functions always have parentheses
print(y)
print(z)
# a, b, and c are also variables
# Their types are strings
a = 'xiao'
b = 'rob'
c = "shaurita"
d = "snack"
number = 999
space = " "
# You can also add strings together
e = a + space + b + space + c + space + d
# Formatted strings
f = f""
formatted_string = f"{a} {b} {c} {d} {number}"
sentence = "I am teletyping with {}, {}, and {}, but I want a {}.".format(a, b, c, d)
print(e)
print(formatted_string)
print(sentence)
# a-d are variables
# They are types of strings
a = "tiger"
b = "monkey"
c = "lion"
d = "bear"
# add strings together
e = a + 2 * space + b + space + c + 2*space
print(e)
#def print(items):
# send_as_output(items)
def get_popular_genes(type):
print(type)
get_popular_genes(type="GPCR")
# Math symbols
# * == multiply
# / == divide
# - == subtract
# + == addition
# print() - is the most popular and important python functions
# list()
# dict()
# dir()