#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 14 15:17:28 2023 @author: richardson """ from itertools import permutations try: q = int(input("give a positive integer: ")) except: # what happens if there is an error print("I said, integer !") else: l = list(permutations(range(1,q+1))) print(l) print(len(l))