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

R is not a simple programming language, and it does better on reading excel files than python

R is not a simple programming language, and it does better on reading excel files than python . tried to read excel files to python and R. i...