TEAM-PROJECT 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
main.py ADDED
@@ -0,0 +1,50 @@
1
+ import getting_input
2
+ import file_path
3
+ import create_exam
4
+ import save
5
+
6
+ def main():
7
+
8
+ # Get professor's name
9
+
10
+ name = getting_input.welcome()
11
+
12
+ while True:
13
+ # Ask if the professor wants to create an exam
14
+ proceed = input("Do you want me to help you create an exam (Yes to proceed | No to quit the program)? ")
15
+
16
+ if proceed.lower() == "yes":
17
+ # Get and load question bank file
18
+
19
+ question_file = file_path.get_file_path()
20
+ questions = file_path.load_questions(question_file)
21
+
22
+ # Get number of questions for the exam
23
+
24
+ count = int(input("How many question-answer pairs do you want to include in your exam? "))
25
+
26
+ # Generate exam
27
+ exam = create_exam.create_exam(questions, count)
28
+
29
+ # Get output file path and save exam
30
+ output_file = input("Where do you want to save your exam? ")
31
+ save.save_exam(output_file, exam)
32
+
33
+ # Display success message
34
+ print("Congratulations Professor " + name + ". Your exam is created and saved in " + output_file + ".")
35
+
36
+ # Ask whether to create another exam
37
+ another = input("Do you want me to help you create another exam (Yes to proceed | No to quit the program)? ")
38
+ if another.lower() == "no":
39
+ print("Thank you professor " + name + ". Have a good day!")
40
+ break
41
+ else:
42
+ # Exit program
43
+
44
+ print("Thank you professor " + name + ". Have a good day!")
45
+ break
46
+ #
47
+ #
48
+
49
+ if __name__ == "__main__":
50
+ main()
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: TEAM_PROJECT
3
+ Version: 0.1.0
4
+ Summary: helping professor to make question by using Python module
5
+ Author: Palikhe Nischal Man
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ # Professor Assistant Version 1.0
10
+
11
+ A simple Python program that helps professors generate exams from a question bank.
12
+
13
+ # Features
14
+
15
+ * Reads questions and answers from a text file.
16
+ * Randomly selects question-answer pairs.
17
+ * Prevents duplicate questions.
18
+ * Saves the generated exam to a file.
19
+
20
+ # Requirements
21
+
22
+ * Python 3.x
23
+
24
+ # Question Bank Format
25
+
26
+ ```text
27
+ What is Python?
28
+ A programming language
29
+ What is 2 + 2?
30
+ 4
31
+ ```
32
+
33
+ Each question must be followed by its answer on the next line.
34
+
35
+ # Run
36
+
37
+ ```bash
38
+ python main.py
39
+ ```
40
+
41
+ Follow the prompts to:
42
+
43
+ 1. Enter your name.
44
+ 2. Provide the question bank file path.
45
+ 3. Choose the number of questions.
46
+ 4. Specify the output file.
47
+
48
+ # License
49
+
50
+ Educational use.
@@ -0,0 +1,5 @@
1
+ main.py,sha256=lW-eAiMhWhFz6EIpJpgfKITC7GxAWuMUf8mUSJ8Ro4s,1704
2
+ team_project-0.1.0.dist-info/METADATA,sha256=AQDLbobGAshr_baoWdO2FqQyCLOKx8GNYW_RDwIXF5o,905
3
+ team_project-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
4
+ team_project-0.1.0.dist-info/top_level.txt,sha256=ZAMgPdWghn6xTRBO6Kc3ML1y3ZrZLnjZlqbboKXc_AE,5
5
+ team_project-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ main