Skip to content

Commit 5b6e64e

Browse files
committed
changes updated
1 parent cc6992e commit 5b6e64e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Diff for: BasicPythonScripts/Facts Generator/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
-Python<br>
55
<b>Module Needed</b><br>
66
-randfacts<br>
7+
<b>Purpose</b>
8+
<br>
9+
The purpose of this script to get the random facts from python using randfacts module of python.
710
<b>Aim</b><br>
811
The aim of the program is to generate random facts using python module {randfacts}.<br>
9-
<b>Workflow</b><br>
12+
<b>Compilation Steps</b><br>
1013
<br>
1114
<b>Step 1:</b> Firstly import randfacts module of python.<br>
1215
<br>

Diff for: BasicPythonScripts/Facts Generator/facts_generator.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
#importing randfacts module of python
12
import randfacts
23
s=1
4+
#variable n define how many facts needed
35
n = int(input('How many interesting facts yo need???\n'))
46

7+
#for loop which give random facts simultaneously
58
for i in range(n):
69
x = randfacts.getFact(True)
710
print(f'{s}..{x}')

0 commit comments

Comments
 (0)