how we load 12.0.0.0 in a python dictionary
jwalajoseph 0 Newbie Poster
Recommended Answers
Jump to PostDo you mean as an IP address? Need a little more specifics than that...
dicts require an identifier (usuall a string), and the object(s) that the identifier refers to... so...
ip_addys = dict() ip_addys['first_ip'] = 12.0.0.0
should probably work... There are other ways to directly insert …
Jump to PostYou must also convert the ip number to normal number or keep it as string. I have posted as one of my first Code Snppets functions for the conversion.
All 5 Replies
ryantroop 177 Practically a Master Poster
TrustyTony 888 pyMod Team Colleague Featured Poster
jwalajoseph 0 Newbie Poster
Gribouillis 1,391 Programming Explorer Team Colleague
ryantroop 177 Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.