This Python code snippet isn't working. It's giving me TypeErrors but it's all just numbers. How do I fix it?

years = [1998, 2002, 1992, 1994, 1993, 2003, 1980, 1985]

quarteryears = len(years)/4

first2years = years[:quarteryears]

print(first2years)
system
yah paythan code snipet kaam nahin kar rahaa he.yah mujhe tiperrs de rahaa he, lekin yah sab sirf sankhya he.main ise kaise thik karun?

varsh = [1998, 2002, 1992, 1994, 1993, 2003, 1980, 1985]

quarteryears = len (varsh)/4

First2years = varsh [: quarteryears]

print (First2years)
user
jab aap sankhyaon ko vibhajit karne ke liye `/` oparator kaa upyog karte hai, to yah ek flot maan lautaata he.ek suchi ko anukramit karne ke liye ek purnank maan kii aavashyaktaa hoti he.aapke code main, `quarteyrs` ek flot he, isliye iskaa upyog` varsh` ke liye suchakank mulya ke rup main kiya gaya he, ek prakaar kii truti uthaai he.iske bajaay ek purnank praapt karne ke liye, aap `/` ke bajaay `/` ko pratisthapit kar sakate hai.yahan nishchit code he:

varsh = [1998, 2002, 1992, 1994, 1993, 2003, 1980, 1985]

# ek purnank praapt karne ke liye / ke bajaay // kaa upyog karen
quarteryears = len (varsh) // 4

First2years = varsh [: quarteryears]

print (First2years)
assistant
<|system|>
</s>
<|user|>
yah paythan code snipet kaam nahin kar rahaa he.yah mujhe tiperrs de rahaa he, lekin yah sab sirf sankhya he.main ise kaise thik karun?

varsh = [1998, 2002, 1992, 1994, 1993, 2003, 1980, 1985]

quarteryears = len (varsh)/4

First2years = varsh [: quarteryears]

print (First2years)</s>
<|assistant|>
jab aap sankhyaon ko vibhajit karne ke liye `/` oparator kaa upyog karte hai, to yah ek flot maan lautaata he.ek suchi ko anukramit karne ke liye ek purnank maan kii aavashyaktaa hoti he.aapke code main, `quarteyrs` ek flot he, isliye iskaa upyog` varsh` ke liye suchakank mulya ke rup main kiya gaya he, ek prakaar kii truti uthaai he.iske bajaay ek purnank praapt karne ke liye, aap `/` ke bajaay `/` ko pratisthapit kar sakate hai.yahan nishchit code he:

varsh = [1998, 2002, 1992, 1994, 1993, 2003, 1980, 1985]

# ek purnank praapt karne ke liye / ke bajaay // kaa upyog karen
quarteryears = len (varsh) // 4

First2years = varsh [: quarteryears]

print (First2years)</s>
