Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

10/22-10/23 - CodeCademy - Syntax

star
star
star
star
star
Last updated over 5 years ago
12 Nsɛmmisa
Hyɛ no nsow a efi ɔkyerɛwfo no hɔ:

Codecademy Python 3 Lessons on Syntax Comments, Strings, Errors, Calculations Exponents Changing Numbers and Moduo

1
1
1
1
1
1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

Type your name

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

Comments section: Write me a line of code that prints She sells sea shells down by the sea shore

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

Write me a single line comment that tells me who one of your family members is

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

Strings section: What is a string?

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

Are variables changeable? If so, how often can you change them?

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

What kind of quotes can you use to create a string?

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

Errors section: What is the difference between a SyntaxError and a Name Error?

Asemmisa {{asɛmmisaAhyɛnsode}}
8.

Calculations section: What kind of math can Python do?

Asemmisa {{asɛmmisaAhyɛnsode}}
9.

Exponents section: How do you do an exponent in Python? Answer this by showing me how to print out 9^2.

Asemmisa {{asɛmmisaAhyɛnsode}}
10.

Changing Numbers section: What is a float in Python?

Asemmisa {{asɛmmisaAhyɛnsode}}
11.

Moduo section: What does the % operator do?

Asemmisa {{asɛmmisaAhyɛnsode}}
12.

Write a line of code to print out the remainder of 23 divided by 5. Do using the mod operator.