0

Can you remove every second number? Please

I need to remove from this every second number, urgently : 010110010100101001011011010010 110100111001001100010111000100 110101010010 010011100100110101001111010011 100101000001010111010100010101 1101010100100 101110101010011010110110101010 001011110010101010101011001010 1100101100101 010111000011100001101100100000 010111000101100001001111010110 0101011110010 110100101010101011011010101010 101110000001110000110110010110 0010111100101 110101010111010111100100111001 011111010011010110000001010010 0110000101011 101011000100100111001100011010 011010100101001010010010010110 1010111010011 000101110101001101010011100100111001011011010011110101111101 0100000101001 001010001010011100101001001100 000010100110110000001010100010 1001001010101 010111010101011001010001010101 110101011001011000010011100101 1001010011100 101101001011101010110110101110 101011100010100010101110101001 1100101111001 011001010111110101101101100000 010011100110000101011100011000 1001011100011 00011

31st Jul 2019, 10:20 PM
Smiehotun chanel
Smiehotun chanel - avatar
7 Answers
+ 2
Muhammad Shehzad this would be easier ... I'd say s = "0101100101001010010110110100101101001110010011000101110001001101010100100100111001001101010011110100111001010000010101110101000101011101010100100101110101010011010110110101010001011110010101010101011001010110010110010101011100001110000110110010000001011100010110000100111101011001010111100101101001010101010110110101010101011100000011100001101100101100010111100101110101010111010111100100111001011111010011010110000001010010011000010101110101100010010011100110001101001101010010100101001001001011010101110100110001011101010011010100111001001110010110110100111101011111010100000101001001010001010011100101001001100000010100110110000001010100010100100101010101011101010101100101000101010111010101100101100001001110010110010100111001011010010111010101101101011101010111000101000101011101010011100101111001011001010111110101101101100000010011100110000101011100011000100101110001100011" s_ = "" for i in range(len(s)): if i % 2 == 0: s_ += s[i] print(s_)
1st Aug 2019, 9:50 AM
Anton Böhler
Anton Böhler - avatar
+ 1
Yeah, nice and thanks
1st Aug 2019, 2:06 PM
Muhammad Shehzad
Muhammad Shehzad - avatar
0
Yrah, you can, it's easy bro, try it by yourself
31st Jul 2019, 10:27 PM
Dejan FrancuzđŸ„‡
Dejan FrancuzđŸ„‡ - avatar
0
what language even?!
31st Jul 2019, 11:09 PM
Anton Böhler
Anton Böhler - avatar
0
you'll have to use an for-loop and the modulo-operator, that should be enougth help ...
31st Jul 2019, 11:11 PM
Anton Böhler
Anton Böhler - avatar
31st Jul 2019, 11:37 PM
Muhammad Shehzad
Muhammad Shehzad - avatar
0
spaces should be kept
1st Aug 2019, 3:58 PM
Smiehotun chanel
Smiehotun chanel - avatar