how was gravity and magnetic pull was created through the creation of the earth and how it differs between planets
  The creation of the Earth and the formation of its gravity and magnetic field is a complex process that scientists continue to study and refine their understanding of. Here is a simplified overview of how gravity and magnetic fields were created during the formation of the Earth:

Gravity:

During the formation of the Earth, the solar nebula (a cloud of gas and dust left over from the Sun's formation) collapsed under its own gravity. As the nebula collapsed, it began to spin faster and faster, causing the material to flatten into a disk shape. The Earth formed at the center of this disk, as the material around it was pulled towards the center by gravity.

The strength of the Earth's gravity depends on its mass and radius. The more massive an object is, the stronger its gravity will be. The Earth's mass is approximately 5.97 x 10^24 kilograms, and its radius is approximately 6.37 x 10^6 meters. These values determine the strength of the gravitational pull on objects on the surface of the Earth.

Magnetic Field:

As the solar nebula collapsed, it began to rotate faster and faster. This rotation created a magnetic field, which is generated by the movement of charged particles (such as electrons) within the material. The Earth's magnetic field is created by the movement
 Gravity and magnetism are fundamental forces of nature that exist independently of any particular object or planet, including Earth. They are not "created" by the object or planet, but rather are a result of the properties of matter and energy.

Gravity is a force that attracts two objects with mass towards each other. The strength of the gravitational force between two objects depends on their masses and the distance between them. Every object in the universe with mass, including planets like Earth, exerts a gravitational pull on every other object. The gravitational pull of a planet like Earth is what keeps us and everything else on the surface of the planet.

Magnetism, on the other hand, is a force that arises from the motion of charged particles, such as electrons. The Earth's magnetic field is generated by electric currents in the liquid outer core, which is composed of conducting iron and nickel. The motion of these charged particles generates a magnetic field that extends out into space and protects the Earth from harmful solar radiation.

The strength of a planet's gravitational pull and magnetic field depends on its size, mass, and composition. For example, Jupiter has a much stronger gravitational pull than Earth because it is much more massive. Similarly, gas giants like Jupiter and Saturn have much stronger magnetic fields than terrestrial planets like Earth because their cores are composed of conducting materials and are in a liquid state,