91852/i-am-getting-output-def
st1="abcdef" st2=st1[len(st1)//2:] Print(st2) Im getting output - "def"
But it should be "cdef" because the length of st1 is 6 and 6/2=3 (which indicates "c" in st1)
You can make a change to your code in this way:
st1[3] = 'd'
different data type is being used. that ...READ MORE
Hey @tekle, You cannot use a string in ...READ MORE
word cloud is not supported for python ...READ MORE
Hi@rose, You are using older version of pip ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
Hi, @There, $ pip install gevent --pre $ pip ...READ MORE
Hi, @Shabaj, Regarding your query, I hope this ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.