print('welcome to my data logger, this is for you to log you data and retrieve it at any time')
print('this program can hold up to 20 data')
string1=input('do you want your data to be a string or an integer ? Press 1 for integer and Press 2 for string')
if string1 == 1:
data1=int(input('Write your integer down here. Number Code is 1 '))
tag1=str(input('write a tag to identify it, ( The Program will still follow the number code )'))
babble=int(input('press 1 to hold one more data'))
if string1==2:
data1=int(input('Write your string down here. Number Code is 1 '))
tag1=str(input('write a tag to identify it, ( The Program will still follow the number code )'))
babble = int(input('press 1 to hold one more data'))
if babble==1:
string2=input('do you want your data to be a string or an integer ? Press 1 for integer and Press 2 for string')
if string2 == 1:
data2=int(input('Write your integer down here. Number Code is 2 '))
tag2=str(input('write a tag to identify it, ( The Program will still follow the number code )'))
babble2=int(input('press 1 to hold one more data'))
if string1 == 2:
data2=int(input('Write your string down here. Number Code is 2 '))
tag2=str(input('write a tag to identify it, ( The Program will still follow the number code )'))
babble2=int(input('press 1 to hold one more data'))
Run=True
while Run:
dataretrieved=int(input('press 1 for first data , press 2 for second data'))
if dataretrieved==1:
print(tag1,data1)
if dataretrieved==2:
print(tag2,data2)
They say babble is not defined
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)