• String Operations (basic)







____________________________________________________________________________________________________________________________________________


String Operations (basic)

  • Strings can be manipulated in a variety of ways, the simplest of which is concatenation

  • # define your strings
    greeting = "hello brawler"
    usrname = "magic05"
    
    # print concatenated strings
    print(greeting + ", my name is " + usrname)
    
    hello brawler, my name is magic05
    
    %%js 
    
    // define your strings
    let greeting = "hello brawler";
    let usrname = "magic05";
    
    // print concatenated strings
    console.log(greeting + ", my name is " + usrname);
    
    <IPython.core.display.Javascript object>