Answer in Python
1.30
21.83
0.21
math module. Print it with 3 digits of precisionAnswer in Markdown. You can use Python for supporting your answer.
Answer in Python
[2 points] Write an if statement that prints if a variable v is positive or negative. Demonstrate it by setting v to -1 and then 1.
[2 points] Write an if statement that will print foo if a string has more than 5 characters and bar otherwise. Demonstrate with a variable whose value is foobar.
[2 points] Write an if statement to check if the character * is in a string and prints hello if it is. Demonstrate with a varaible whose value is fizz*buzz.
Answer in Python
Use this list to answer the questions: ['A', 'B', 'C', 'D', 'E', 'F', 'G']
len function