Python Forum
declaring a new dictionary
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
declaring a new dictionary
#3
If you need an integer, use 1:

myDict={
    "one":1}
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply


Messages In This Thread
declaring a new dictionary - by dedagent0900 - Feb-03-2024, 02:10 PM
RE: declaring a new dictionary - by dedagent0900 - Feb-03-2024, 02:15 PM
RE: declaring a new dictionary - by rob101 - Feb-03-2024, 03:05 PM

Forum Jump:

User Panel Messages

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