Ad
Strings
Data Types
Iterators
Control Flow
Object-oriented Programming
Basic Language Features
Fundamentals
Programming Paradigms
Code
Diff
  • def removeEverySecond(string):
      
    
        a = list(string)
        b = a[::2]
        b=  "".join(b)
        return b
    
    
    • def removeEverySecond(string):
    • # Your code goes here
    • return string[::2]
    • a = list(string)
    • b = a[::2]
    • b= "".join(b)
    • return b
Code
Diff
  • print("...... initiating deployment please stand by.......\n Hello my name is skynet i have become self aware")
    print("What is your name?")
    
    • print("Hello my name is skynet i have become self aware")
    • print("initiating deployment please stand by")
    • print("...... initiating deployment please stand by.......\n Hello my name is skynet i have become self aware")
    • print("What is your name?")