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)]

26th Dec 2020, 6:02 AM
YAP ZHI WEI Moe
YAP ZHI WEI Moe - avatar
13 Answers
+ 8
Harun Kasim woliyi , please not place a new question inside a post of someone else. please start a new question to get help.
29th Oct 2022, 7:09 PM
Lothar
Lothar - avatar
+ 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)]
26th Dec 2020, 8:04 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 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!
26th Dec 2020, 6:07 AM
noteve
noteve - avatar
+ 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).
26th Dec 2020, 11:30 AM
Lothar
Lothar - avatar
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...
27th Dec 2020, 5:57 AM
Ratnapal Shende
Ratnapal Shende - avatar
0
@Ratnapal Shende thank you
27th Dec 2020, 6:49 AM
YAP ZHI WEI Moe
YAP ZHI WEI Moe - avatar
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])
6th Oct 2021, 6:43 PM
Kelum Dilshan Weerasuriya
0
please help Fill in the blanks to call the range function with one argument: 8.
26th Oct 2022, 4:53 AM
Harun Kasim woliyi
0
Ans is 3
15th Jan 2023, 4:25 PM
Engr.Ayesha Liaqat
Engr.Ayesha Liaqat - avatar
0
a=[x*10 for x in range(5,9)] print (a)
24th Mar 2023, 11:21 PM
المهندس أحمد
المهندس أحمد - avatar
- 1
for, in, 5
30th Mar 2021, 1:22 PM
Sophia Porras
Sophia Porras - avatar
- 1
1. For 2. In 3. 5
28th Dec 2021, 6:21 PM
Thuwayba Ahmed
Thuwayba Ahmed - avatar
- 1
It isn't working for me .. For in 5 I don't know why
21st Feb 2022, 10:42 AM
Abrar Ahmed
Abrar Ahmed - avatar