0
Can some one help me?
Fill in the blanks to create a list of numbers multiplied by 10 in the range of 5 to 9. a = [x*10 x range( , 9)]
13 ответов
+ 8
Harun Kasim woliyi ,
please not place a new question inside a post of someone else. please start a new question to get help.
+ 5
Revise the range() function and focus on it's arguments
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2434/
Solution :
a=[x*10 for x in range(5,9)]
+ 4
where is the blank?
By the way, If that is a generator, Here is the sample structure of it that may give you hint.
x = [i for i in range(5)]
print(x)
>> [0, 1, 2, 3, 4]
- - - - - - - - - - - - - - - - - -
Check the comment section of that quiz or lesson, people gives additional info there that may help you. Thanks and Happy Coding!
+ 3
Ratnapal Shende , the stop number itself is not included in the generated list of numbers. (range(5,9) ctreates: 5,6,7,8) If you want to include the stop number use range(5,9+1).
0
Lothar yes sir you are right but YAP ZHI WEI Moe he is filling the blanks 🤔 so 9 (end argument) is already given their...
0
@Ratnapal Shende thank you
0
Fill in the blanks to create a list of numbers from 0 to 99 and output the 5th item.
x =
(
range
(0, 99))
print(
x
[4])
0
please help
Fill in the blanks to call the range function with one argument: 8.
0
Ans is
3
0
a=[x*10 for x in range(5,9)]
print (a)
- 1
for, in, 5
- 1
1. For
2. In
3. 5
- 1
It isn't working for me .. For in 5
I don't know why