Python project | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python project

Hi, can anyone help me write a code that lets me pick a number x from 1-10 at random? Thanks!

9th Jan 2020, 3:15 PM
will
will - avatar
2 Answers
+ 4
Here is the lesson: https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2438/ And here is a code: https://code.sololearn.com/cI2pyBJ8D5PL/?ref=app Hope it helps 🙂 (Read the lesson first, only this way you will understand)
9th Jan 2020, 3:40 PM
Elen V
Elen V - avatar
+ 1
import random num=random.randint(1,10) print(num)
10th Jan 2020, 8:17 PM
Sousou
Sousou - avatar