At the top of your program:
import math
or
from math import *
The second one imports all math functions, like fact() for factorial.
import random random.randrange(1, 99999) #Set range from 1 to 99999
this is the code for making a random number using python: import random >>>random.randint (1, 10) you can do whatever numbers you want.
There are a couple of ways: 1. Use turtle. It is a module that can be imported. 2. The print function 3. Use tkinter. It is a module in python that you can import.
sudo apt-get install python-parallel sudo rmmod lp log out sudo modprobe ppdev python import parallel prPrt = parallel.Parallel() prPrt.setData(0x01)
Use the datetime module. To get the hours you would do datetime.hour or you could just type datetime
Here is my code: import math num = int(input()) print(math.factorial(num)) I used a bit of a cheat and imported the math module though.
import random random.randrange(1, 99999) #Set range from 1 to 99999
U can use following method to import every methods under math class. import java.lang.math.* OR U can use following method to import particular package from Math class.(Here PI value imported from math class) import java.lang.Math.PI
Module is the Group of "Functions or Clauses".......Husnu
this is the code for making a random number using python: import random >>>random.randint (1, 10) you can do whatever numbers you want.
He memorized tables of functions, exponential functions, logarithmic functions, etc, ... try looking up "handbook of mathematical functions"
There are a couple of ways: 1. Use turtle. It is a module that can be imported. 2. The print function 3. Use tkinter. It is a module in python that you can import.
sudo apt-get install python-parallel sudo rmmod lp log out sudo modprobe ppdev python import parallel prPrt = parallel.Parallel() prPrt.setData(0x01)
In Word 2003 there were Import /Export functions. These have vanished in 2007
Use the datetime module. To get the hours you would do datetime.hour or you could just type datetime
feee
As is used to import Module name as short short cut... EX: import math as m ........Husnu