-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.py
More file actions
71 lines (36 loc) · 1.32 KB
/
Copy pathtest1.py
File metadata and controls
71 lines (36 loc) · 1.32 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
64
65
66
67
68
69
70
''' 1. comments - For python, use with a '#' symbol
or 3 quotes nesting your comment:
-helps explain what the code is doing
-great for jogging your memory if you are editing old code
-helps keep code organized
'''
# this is a comment
''' 2. prints - A function Used to send data to the console/terminal/screen
-Keep track of data in any part of your code
-Great for debugging code
-Needed for terminal/CLI based programs
* print('ThisGuyCodez....*')
* print(24)
***FROM NOW ON WE WILL USE PRINT TO DISPLAY OUR VALUES TO THE CONSOLE
'''
# 3. Strings, Integers , Floats , and Booleans - Data Types
# 3a.) String{a sequence of characters within quotes}
print('This is a String' , "I'm a string 2")
# 3b.) Integer{regular number} solid numbers only(NO COMMAS)
print(24 or 2400)
# 3c.) Float{decimals}
print(5.1 or 33.33)
# 3d.) Boolean{One of the two values - True or False}
print(True or False)
# Try it your self......
# Answer all the questions below, then move on to test2.py
# 1.) print my youtube channel as a string...
'''
2.) print the names of your favorite
coding languages you know or the names
of the ones you want to learn in a string...
'''
# 3.) print a random number/integer...
# 4.) print a random decimal...
# 5.) print a bool...
# 6.) print a string, integer, decimal, and a bool...