ezoic

Thursday, February 16, 2017

Five mini python projects and the solutions

Five mini python projects and the solutions

http://knightlab.northwestern.edu/2014/06/05/five-mini-programming-projects-for-the-python-beginner/


1. roll a dice

import random


def ran1(x):
     r1=random.randint(1,x)
     print(r1)

if __name__=="__main__":
     ran1(6)







No comments:

Post a Comment

looking for a man

 I am a mid aged woman.  I was born in 1980. I do not have any kid. no complicated  dating before . I am looking for a man here for marriage...