Filing Status Question

Hi,

I am foreign national working in US on H1B visa. I was US resident for full year in 2017 and left US on 26th July 2018 and came back on 21st April 2019 hence would like to know what will be my tax filing status for 2018 and 2019? Is it Resident alien or Dual status alien? and what will be reason for it considering I was not in US for full year in both years.

Thanks.

@LinaJ2020@KarenJ2 Can you please help with query?

@RobertG@AmyC @KrisD15