[Tutor] Create command

Dominique Hagler dbhagler at gmail.com
Wed Sep 21 19:11:55 EDT 2022


 Hi Steve,

This is what I have come up with. Sorry still not sure how to save it correctly.




Thank you, 

Dominique Hagler
Have a great day!

Sent from an iPhone, so please excuse brevity and typos!

> On Sep 21, 2022, at 6:57 PM, Steve Willoughby <steve at madscience.zone> wrote:
> 
> Dominique,
> 
> It looks like you have an interesting homework exercise there to figure out. I don’t see a specific question from you, though. What have you tried so far? How did that work? What are your thoughts for where to proceed with this?
> 
> We can help guide you in your course of discovery here, but we need something to start with since we’re not going to do your homework for y ou. 
> 
>> On 21-Sep-2022, at 03:36, Dominique Hagler <dbhagler at gmail.com> wrote:
>> 
>> Create a command line tool for storing and fetching key-value pairs. In other words, given a key and a value, which are both strings, it can store key and value together, and then return that value when fetched by that key. The tool must be able to be run from the command line by typing "key-value", though it is acceptable to also require the path or an extension (eg, "./key-value.rb" is fine). If needed, it is acceptable to include a setup script that must be run before the tool can be run. Running the tool must open an interactive session that accepts put, fetch, and exit commands. When ready to accept a command, it must output the string "> " as a command prompt.
>> 
>> My command example: 
>> 
>> Person1 = { “name” : “ Daisy”, “age”: 20}
>> 
>> 
>> Thank you, 
>> 
>> Dominique Hagler
>> Have a great day!
>> 
>> Sent from an iPhone, so please excuse brevity and typos!
>> _______________________________________________
>> Tutor maillist  -  Tutor at python.org
>> To unsubscribe or change subscription options:
>> https://mail.python.org/mailman/listinfo/tutor
> 


More information about the Tutor mailing list