Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am currently studying Minna no nihongo. I came across these two sentences
Why was de used in gakkodewa , instead of gakkoniwa in second sentence?
In these two examples, there are two main differences you should learn.
に in the first sentence is used to explain the location that something or someone exists.
で in the second sentence is used to explain the location that an action takes places.