Skip to content

Commit a70a10c

Browse files
Study Guide: Module 1 Graded Quiz -- Skill 02
1 parent 9377cf2 commit a70a10c

File tree

2 files changed

+63
-13
lines changed

2 files changed

+63
-13
lines changed

.idea/workspace.xml

Lines changed: 35 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Study Guide: Module 1 Graded Quiz
22
# Coding Skills
3-
4-
# Syntax for printing a string text
3+
#
4+
# Skill 01 --Syntax for printing a string text
55
print("I love Python ")
66

77
# Syntax for printing numeric values
@@ -11,4 +11,29 @@
1111

1212
# Syntax for printing the value of a variable
1313
value = 6*5 +2
14-
print(value)
14+
print(value)
15+
16+
#Skill 02 --Use arithmetic operators, with a focus on exponents
17+
#
18+
# Multiplication, division, addition, and subtraction
19+
20+
print(3*7/2+2+5-1) # output >>16.5
21+
22+
# Exponents
23+
print(4**6) # Syntax means 4 toi the power of 6
24+
print(4**2) # To square a number
25+
print(4**3) # To cube a number
26+
print(4**0.5) # To find the square root of a number
27+
28+
# to calculate how many different possible combination can be
29+
# formed using a set of "x" characters with each character in "x"
30+
# having "y" number of possible values, you will need to use an
31+
# exponent for the calculation
32+
33+
x= 4
34+
y= 26
35+
print(y**6)
36+
37+
" Give it a try , Happy coding "
38+
39+

0 commit comments

Comments
 (0)