<jupyter_start><jupyter_text><jupyter_code>#sort fun in listS
friends=['joseph','glenn','sally']
friends.sort()
print (friends)
print(friends[1])
#while loop
total=0
count=0
while True:
  inp= input('enter a number:')
  if inp =='done': break
  value =float(inp)
  total = total +value
  count = count+1
  average = total/count
  print('Average:',average)

for number in range(5):
  print('attempt',number)
#wap to print prime number in  between 1 to 1000:
for x in range(2,1001,1):
  for y in range(2,x,1):
    if x%y==0:
      break
  else:
        print(x,"is a prime number")

#for loop
for number in range(5):
    print('index',number)
for number in range(20):
    print('count',number)
# for loop in sequence
for i in range(1,20,2):
  print("the number is ",i)
#in range
for j in range(1,10):
  print("list is",j)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1519434628975265, 'fraction_numerical': 0.03415783274440518, 'mean_word_length': 4.483870967741935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '441418', 'license': 'MIT', 'n_tokens_mistral': 339, 'n_tokens_neox': 319, 'n_words': 96, 'path': 'work7.ipynb', 'repo_name': 'Gyanajitdas/work', 'size': '849'}