Advertisement
SimeonTs

SUPyF2 D.Types and Vars Lab - 01. Concat Names

Sep 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. """
  2. Data Types and Variables - Lab
  3. Check your code: https://judge.softuni.bg/Contests/Practice/Index/1721#0
  4. Video: https://www.youtube.com/watch?v=i2vHypjJkB4
  5.  
  6. SUPyF2 D.Types and Vars Lab - 01. Concat Names
  7.  
  8. Problem:
  9. Read two names and a delimiter. Print the names joined by the delimiter.
  10. Examples:
  11.  
  12. Input:
  13. John
  14. Smith
  15. ->
  16. Output:
  17. John->Smith
  18.  
  19. Input:
  20. Jan
  21. White
  22. <->
  23. Output:
  24. Jan<->White
  25.  
  26. Input:
  27. Linda
  28. Terry
  29. =>
  30. Output:
  31. Linda=>Terry
  32. """
  33.  
  34. first_name, second_name, delimiter = input(), input(), input()
  35. print(f"{first_name}{delimiter}{second_name}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement