+ 3
Doubts to creating arrays with Python
Hi everyone! I am trying to create a array in Python, but I do not understand why sublists are the same. Thanks everybody https://code.sololearn.com/ce1fE7vtvkTH/?ref=app
3 Answers
+ 5
I have made a code after looking at your code. It does the work which you want to do but in a different way, so I have added plenty of comments and documented it so that you can understand it well.
In the end, I will encourage you to not use the syntax "from random import *"!!
as it is not considered as the right way to import the module and it causes many abnormalities in our program which you will learn later.
If you want to import a complete module then use the simple syntax as " import random" Or "from random import randint".
This is a better way as you haven't used the other functions in the random module. So, import only those which you want in your program.
In end happy coding buddy!!!!!! đ
https://code.sololearn.com/c57zBB3o040Z/?ref=app
+ 5
Your welcome Marcos!!!!!
Keep coding and keep growing!!!
Never ever give up!!!!
The community of sololearn is always here to help.
+ 2
Thank you so much man, now I understand it better than before đđ»