Answer:
moderators have to delete it for u
Explanation:
Answer:
age = 10
name = Cynthia
make an f string so the variables appear in the string. There are other ways to do this but I prefer f strings instead of using string concatenation. It causes problems adding 2 strings together most of the time.
print(f'Hi, {name} ! How are you? I know you are {age} old.')
Answer:
132
Explanation:
We convert each number to base 10 (decimal) and multiply.
So 1011₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1 × 2⁰
= 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1
= 8 + 0 + 2 + 1
= 11₁₀
1100₂ = 1 × 2³ + 1 × 2² + 0 × 2¹ + 0 × 2⁰
= 1 × 8 + 1 × 4 + 0 × 2 + 0 × 1
= 8 + 4 + 0 + 0
= 12₁₀
So, 1011₂ × 1100₂ = 11₁₀ × 12₁₀ = 132₁₀
So, the decimal equivalent of the product of 1011 and 1100 is 132
Answer:
Javascript, because of the use of commas at the end of each line and the while operator using commas to hold params.