week 3 Python Graded Assignments GRPA 3 IIT Madras Complete Solutions Are Discussed In the Drive Link Given Below See Bottom And Request We Hope This Might Help You All In Matching Answers . Or For Some Others Reasons Not Able To Complete Graded Assignments
GrPA 3 – Nested loops – GRADED
Create a multi-functional program that performs different tasks based on the user input. The program should support the following tasks:
- Permutation (
permutation
): Given a strings
, print all the possible two-letter permutations(without repitition) of the letters in the string. - Sorted Permutation (
sorted_permutation
): Given a strings
, print all the possible two-letter permutations(without repetition) of the letters in the string where the first character comes before the second one in alphabetical order. The order in which the permutations are printed is same as the previous one (Type: Filtering). - Repeat the Repeat (
repeat_the_repeat
): Given a numbern
, print the numbers from 1 ton
in the same line and repeat thisn
times. - Repeat Incrementally (
repeat_incrementally
): Given a numbern
, print a pattern where thek
-th line contains the firstk
numbers and there aren
lines in total. For example, ifn
is 4, the output should be:1 12 123 1234
- Increment and Decrement (
increment_and_decrement
): Given a numbern
, print a pattern where thek
-th line should have the numbers from1
tok
and then back down to1
. For example, ifn
is 4, the output should be:1 121 12321 1234321