Lockdown Offer: FLAT 75% + Addl. 25% Off + 30-days Extra Lab on ALL Courses | Use Coupon Code LD25 during Checkout | Offer Expires In

  Enroll Now

Python - Videos and Questions

22 / 78

Python - String Concatenation

In Python, we can use several string operations like concatenations. Two strings can be concatenated using the "+" operator. For example, to concatenate strings "football" and "basketball" and assign it to new variable games, use the below code

games = "football" + "basketball"

  • Assign "Cloudx" to a variable first and "Lab" to a variable second
  • Concatenate first and second and store the result in the variable final

Note - Having trouble with the assessment engine? Check this discussion