fork download
  1. # your code goes here
  2. a = 'Nish'
  3. b = 'Swee'
  4. print(a,b)
  5.  
  6. c = input()
  7. print(c)
  8.  
  9. print(a[0])
  10. print(a+b)
  11. print(a[2]+b[3])
  12. print(a[1:4]+b[3:5])
  13.  
  14. list = ['Swee','Nish']
  15. print(list)
  16.  
  17. list1 = [['Check1', 'SW'], ['Offo'], [1,2,3], ['hi','this','is','sheldon']]
  18. print(list1)
  19.  
  20. tuples = ('Swee','Nish')
  21. print(tuples)
  22.  
  23. dic = {1: 'Swee', 2: 'Nish'}
  24. print(dic)
  25.  
  26. dic1 = {'Nish' : 'Nish', 'Swee' : 'Swee', 1 : [1, 2 ,3 ,4]}
  27. print(dic1)
  28.  
  29.  
  30. #data type : int, float, bool, string
  31. #derived : list, tuples, dict, set
Success #stdin #stdout 0.02s 9200KB
stdin
Sweta Suman
stdout
Nish Swee
Sweta Suman
N
NishSwee
se
ishe
['Swee', 'Nish']
[['Check1', 'SW'], ['Offo'], [1, 2, 3], ['hi', 'this', 'is', 'sheldon']]
('Swee', 'Nish')
{1: 'Swee', 2: 'Nish'}
{'Nish': 'Nish', 'Swee': 'Swee', 1: [1, 2, 3, 4]}