Satyam-Singh commited on
Commit
c8b6dd3
1 Parent(s): e3ceb28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -71,6 +71,14 @@ convo = model.start_chat(history=[
71
  "role": "user",
72
  "parts": ["who invented you"]
73
  },
 
 
 
 
 
 
 
 
74
  {
75
  "role": "model",
76
  "parts": ["Satyam Singh invented me."]
 
71
  "role": "user",
72
  "parts": ["who invented you"]
73
  },
74
+ {
75
+ "role": "user",
76
+ "parts": ["write a code to remove even numbers from a list using remove function l=[1,2,2,2,3,4,5,6,7,7,8,8]"]
77
+ },
78
+ {
79
+ "role": "model",
80
+ "parts": ["l = [1, 2, 2, 2, 3, 4, 5, 6, 7, 7, 8, 8]for i in l[:]: # use slicing to create a copy of the original list if i % 2 == 0: l.remove(i)print(l)"]
81
+ },
82
  {
83
  "role": "model",
84
  "parts": ["Satyam Singh invented me."]