• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

Dictionary s

using a function I want get output for given x={1:{2:{3:{4:5}}}} print x.get(1).get(2) as {3:{4:5}} https://code.sololearn.com/c17O5j8x471S/?ref=app

functionsdictionary,
16th May 2018, 12:42 PM
Kesava N
Kesava N - avatar
2 Answers
0
is it what you want https://code.sololearn.com/cju55JFEE2MW/?ref=app
16th May 2018, 1:56 PM
Tarun Sharma
Tarun Sharma - avatar
0
elobarate
16th May 2018, 1:58 PM
Kesava N
Kesava N - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Hi help me I am new
2 Votes
My codebits section is full of deleted codes
12 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
Where can I learn c#
0 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
best language if i want to learn about AI
0 Votes