Skip to content

Create Generate Permutations.py#219

Open
gopichandpuli9 wants to merge 1 commit intoankitapuri:mainfrom
gopichandpuli9:permutations
Open

Create Generate Permutations.py#219
gopichandpuli9 wants to merge 1 commit intoankitapuri:mainfrom
gopichandpuli9:permutations

Conversation

@gopichandpuli9
Copy link
Copy Markdown
Contributor

Related Issuse

  • Created Generate permutations file in python

Closes: #171

Describe the changes you've made

Added a python file.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

I've verified this with many examples on my local editor.

Describe if there is any unusual behaviour of your code(Write NA if there isn't)

NA

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Screenshots

Original Updated
original screenshot updated screenshot

# Driver program to test above function
data = list(map(int, input().split()))
for p in permutation(data):
print p
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use parentheses to print

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate Permutations

2 participants