<jupyter_start><jupyter_text>1. Create the below pattern using nested for loop in Python.<jupyter_code>def printStars(rowNum, divPoint):
  for i in range(rowNum):
    print((i+1)*'*')  if (i+1)<=divPoint else print(((rowNum-i))*'*')
# o/p
printStars(9,5)<jupyter_output><empty_output><jupyter_text>2. Write a Python program to reverse a word after accepting the input from the user.<jupyter_code>def reverseWord(word):
  print(''.join(reversed(word)))
# o/p
reverseWord('ineuron')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14951456310679612, 'fraction_numerical': 0.011650485436893204, 'mean_word_length': 6.701492537313433, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '663153', 'license': 'MIT', 'n_tokens_mistral': 192, 'n_tokens_neox': 189, 'n_words': 43, 'path': 'iNeuron_Python_Assignment2.ipynb', 'repo_name': 'sabyasachisome/iNeuronClasses', 'size': '515'}