'Messages in python
What Im trying to do is get a userinput store it in the cloud with a name and another user can enter the name and see all messages with that name so like this
user = input("1. write a message \n 2. get a message")
if user == "1":
name = input("whats the name of the message?: ")
#store the name in the cloud
message = input("message = ")
#store the message in the cloud with the name like this name:message
if user == "2":
a = input("what is the name of the message")
with open(cloud file name, "r"):
file1 = open('myfile.txt', 'r')
Lines = file1.readlines()
if Lines has a:
print(Lines)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
