Advertisement
mayankjoin3

reg

May 1st, 2025 (edited)
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.40 KB | None | 0 0
  1. list = ['BS-HSS-ECONOMICS', 'Btech/Mtech-CEE-Environmental Engineering', 'Btech/Mtech-CEE-Geotechnical Engineering', 'Btech/Mtech-CEE-Structural Engineering ', 'Btech/Mtech-CEE-Transportation Engineering ', 'Btech/Mtech-CSE-CSE ', 'Btech/Mtech-ECE-VLSI', 'Btech/Mtech-EEE-CSSP', 'Btech/Mtech-EEE-P&CS ', 'Btech/Mtech-ME-Mechatronics', 'Btech-CBE-CBE', 'Btech-CEE-CEE', 'Btech-CSE-AI&DS', 'Btech-CSE-CSE', 'Btech-CST-CST', 'Btech-EE-ECE', 'Btech-EE-EEE', 'Btech-EP-EP', 'Btech-M&C-M&C', 'Btech-ME-ME', 'Btech-MME-MME', 'Msc-CH-Chemistry', 'Msc-MA-Mathematics', 'Msc-PH-Physics', 'Mtech-CBE-CBE', 'Mtech-CEE-CEE', 'Mtech-CEE-Environmental Engineering', 'Mtech-CEE-Geotechnical Engineering', 'Mtech-CEE-Rock Engineering for Infrastructure Development', 'Mtech-CEE-Structural Engineering', 'Mtech-CEE-Transportation Engineering', 'Mtech-CSE-AI', 'Mtech-CSE-CSE', 'Mtech-EE-CSSP', 'Mtech-EE-P&CS', 'Mtech-EE-VLSI and Embedded System', 'Mtech-M&C-M&C', 'Mtech-ME-Advanced Manufacturing Technology', 'Mtech-ME-Mechanical Design', 'Mtech-ME-Mechatronics', 'Mtech-ME-Thermal and Fluids Engineering', 'Mtech-MME-Materials Science and Engineering', 'Phd-CEE-CEE', 'Phd-CH-Chemistry', 'Phd-MA-Mathematics', 'Phd-MME-MME', 'Phd-PH-Physics',]
  2.  
  3. for x in list:
  4.     print(x.split('-')[0])
  5.    
  6. #0 - Course (two cols_ short form - full form)
  7. #1 - Dept  (two cols_ short form - full form)
  8. #2 - Branch/Specialization (two cols_ short form - full form)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement