I'm new to Python, and I wrote a simple while loop script that isn't working, and I keep getting syntax errors.  Can you tell me what is wrong with it?

i = 4
while (i < 10){
  print(i)
  i += 1
}
system
main paythan ke liye nayaa hum, or maine loop script ke dauraan ek saral likhaa he jo kaam nahin kar rahaa he, or mujhe sintax trutiyaan milti rahati hai.kya aap mujhe bataa sakate hai ki isamen kya galat he?

i = 4
jabaki (main <10) {
  print (i)
  i += 1
}
user
aisa lagata he ki aapkaa sintax paythan ke liye sahi nahin he.paythan main, aap thodaa samay loop kaa upyog karte samay koshthak yaa ghunghraale bracis kaa upyog nahin karte hai.iske bajaay yah prayaas karen:

i = 4
jabaki main <10:
  print (i)
  i += 1
assistant
<|system|>
</s>
<|user|>
main paythan ke liye nayaa hum, or maine loop script ke dauraan ek saral likhaa he jo kaam nahin kar rahaa he, or mujhe sintax trutiyaan milti rahati hai.kya aap mujhe bataa sakate hai ki isamen kya galat he?

i = 4
jabaki (main <10) {
  print (i)
  i += 1
}</s>
<|assistant|>
aisa lagata he ki aapkaa sintax paythan ke liye sahi nahin he.paythan main, aap thodaa samay loop kaa upyog karte samay koshthak yaa ghunghraale bracis kaa upyog nahin karte hai.iske bajaay yah prayaas karen:

i = 4
jabaki main <10:
  print (i)
  i += 1</s>
