Challenges 1
Challenges 1
1a). In this challenge I want you to create code to print out a Christmas tree in #s as shown here:
1b). Set a variable called Text to the following "!tcejbus tseb eht si gnitupmoC" . Get Python to print it out in reverse. To print something out in reverse type the variable name followed by [::-1] as shown below.
print(stringname[::-1])
1c). In this challenge I want you to create a variable called Speed, Distance and Time. Distance needs to be set to 7.7, Time needs to be set to 5. Calculate the Speed using Speed = Distance / Time. Print out a suitable message using the variables so that it shows:
With a distance of 7.7m and a time taken of 5s the speed is <answer> m/s.