How to store inputs in dictionary | Sololearn: Learn to code for FREE!

+3

How to store inputs in dictionary

4/21/2021 6:56:34 AM

Codemurai

8 Answers

New Answer

+4

Try this https://code.sololearn.com/cAc0t9p18Lzc/?ref=app

+8

Codemurai could you please describe what your input looks like and what you want to do with it in particular?

+4

input =input() dict = { 'date':'21', 'month': 'april', 'year': '2021', } print(dict[input])

+3

Codemurai, Maybe this is what you want. https://code.sololearn.com/cqpXNFmGAGuC/?ref=app

+1

Jan Markus Question :- How do I put input in dictionary I don't what the use of it but I need to know how to put input in dictionary

+1

Simba Sorry, I mean how do I put input in dictionary

+1

Simba For example My input is 'hello world' We need to store it in dictionary

+1

Scarlet Witch I will test this later and give a tick if correct