repl.it
@JamesMacdonald1/

Project 8 - Final Project-RohanPankaj

Python

No description

fork
loading
Files
  • main.py
  • applicationMap.py
  • task.py
  • user.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from user import rohan
#from task import task

m_user = input("What is your name ") 
#m_user = user()
action = input("What do you want to do? ")

if action == "add task":
  """u_topic = input("what topic does this task fall under? ")
  u_task = input("What is the new task")
  if u_topic not in m_user.topics:"""
  m_user.add_task()
  """
    new_topic = u_topic
    new_topic = task()
   # print(u_topic)
   # print(U)
    new_topic_list = new_topic.task_list
    print(new_topic_list)
    m_user.add_topic(u_topic, new_topic_list)
  print(new_topic.task_list)"""
  #m_user.topics[u_topic] = new_topic_list.append("test") 
elif action == "add topic":
  u_topic = input("What is the name of the new topic")
  m_user.add_topic(u_topic)
elif action ==  "remove task":
  u_task = input("What is the task you want to delete ")
  u_topic = input("what topic does this task fall under? ")
  m_user.topics[u_topic].remove(u_task)
elif action == "remove topic":
  u_topic = input("What is the name of the topic you want to delete")
  m_user.delete_topic(u_topic)

print(m_user.topics)

?