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

Variables in Python

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

Variable assignment review for beginners in Python

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

A Variable is like a ....

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

Which one of the following would be a suitable variable name

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

Declaring a variable refers to

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

Which variable name is correct

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

What type of data is in the variable: runner = ("4")

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

Which concatenation is suitable to follow: userName = input("Please enter your name")

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

What will the output from the print statement be?

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

What will the output from the print statement be?

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

This code will not work, why?: num1 = int(input(“Please enter a number”)

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

Which contatenation is correct to follow: num1 = int(input("Please enter a number"))