Open swt2public opened 7 years ago
Given a tweet "1+2", Then the bot's answer should contain "3".
myString.split('+')
, where myString
is a variable containing your string.split
returns an array, here is a small example
myString = "1+2" arguments = myString.split('+') print arguments[0] #(prints '1') print arguments[1] #(prints '2')
int(myString)
.Expected response to contain "3",
but got "2".
Given a tweet "1+2", Then the bot's answer should contain "3".
myString.split('+')
, where myString
is a variable containing your string.split
returns an array, here is a small example
myString = "1+2" arguments = myString.split('+') print arguments[0] #(prints '1') print arguments[1] #(prints '2')
int(myString)
.Expected response to contain "3",
but got "2".
Given a tweet "1+2", Then the bot's answer should contain "3".
Hints
myString.split('+')
, wheremyString
is a variable containing your string.split
returns an array, here is a small exampleint(myString)
.