Skip to content

manishnk09/001-dict-of-squares

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Programming Basics - Assignment

Problem Statement:

With a given integral number n, write a function to generate a dictionary that contains (i, i*i) such that is an integral number between 1 and n (both included).

  1. Number should not be less than 0 and should not be greater than 100.
  2. Calculate square of all number from 1 to n and store in dict.
  3. Function should pass all test cases.

Instructions:

  • Program should be written in file square_of_numbers.py

  • Function name should be squareOfNumbers.

  • Input

     Type:  Integer
     Value: 5
    
  • Expected Output

      Type:  Dictionary
      Value: {1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%