<jupyter_start><jupyter_text>Table of Contents1&nbsp;&nbsp;Question1.1&nbsp;&nbsp;Answer2&nbsp;&nbsp;Question2.1&nbsp;&nbsp;Answer3&nbsp;&nbsp;Question3.1&nbsp;&nbsp;Answer  Question<jupyter_code>Question 1. Write a program which accepts a sequence of comma-separated numbers from console and generate a list.<jupyter_output><empty_output><jupyter_text>Answer<jupyter_code>[int(i) for i in input('Please Enter comma-separated numbers : ').split(',')]<jupyter_output>Please Enter comma-separated numbers : 1,2,3,4<jupyter_text>Question<jupyter_code>Question 2. Create the below pattern using nested for loop in Python.
Sample Output:
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*<jupyter_output><empty_output><jupyter_text>Answer<jupyter_code>rows = 5
for i in range(1, rows +1 ):
    for j in range(0, i):
        print("*", end=" ")
    print()
    if i == rows:
        for i in range(rows-1,0,-1):
            for j in range(i, 0, -1):
                print("*", end=" ")
            print()<jupyter_output>* 
* * 
* * * 
* * * * 
* * * * * 
* * * * 
* * * 
* * 
*<jupyter_text>Question<jupyter_code>Question 3. Write a Python program to reverse a word after accepting the input from the user.
Input word : ineuron
Output word: norueni<jupyter_output><empty_output><jupyter_text>Answer<jupyter_code>word = input('Input word : ')
print('Output word: {}'.format(word[::-1]))<jupyter_output>Input word : ineuron
Output word: norueni
{'fraction_non_alphanumeric': 0.15529247910863508, 'fraction_numerical': 0.018105849582172703, 'mean_word_length': 4.422641509433962, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '440748', 'license': 'MIT', 'n_tokens_mistral': 548, 'n_tokens_neox': 526, 'n_words': 111, 'path': 'Assignments/Basic-Python-Assignment-2.ipynb', 'repo_name': 'vigneshpalanivelr/MeachineLearningAI', 'size': '1436'}