Category Archives: Python

By December 16, 2017

Check out the code snippet below to see how it works to generate a number between 1 and 100. import random for x in range(10): print random.randint(1,101) The code above will print 10 random values of numbers between 1 and 100. The second line, for x in range(10), determines how many values will be printed


Read More
By September 24, 2017

Read More
By December 28, 2016

Apache / Python basic setup This is a from the ground up basic Apache/ Python integration. Linux OS: Debian 1. apt-get install python apache2 2. enable the cgi module by running ” a2enmod cgi ” 3. update the Apache config setting. For me I set AllowOverride to All because i wanted to set my configs


Read More
By February 27, 2016

Life of a programmer:: Showing the errors and corrections of a simple print / input function


Read More