Python Forum
Dictionaries in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dictionaries in Python
#2
You get user input using the input function (answer = input('question? ')), you allow for any case by lower casing it (answer.lower()), and you access dictionary items with brackets (dictResult['maths']).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Dictionaries in Python - by erfanakbari1 - Mar-02-2019, 05:27 PM
RE: Dictionaries in Python - by ichabod801 - Mar-02-2019, 06:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Python dictionaries kam_uk 5 2,508 Dec-22-2020, 11:32 PM
Last Post: jefsummers
  Newbie to Python - Problem in accessing Dictionaries and List sambill 1 3,063 Aug-17-2017, 07:38 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020