The mass of an object is the amount of matter it contains. It remains constant regardless of where the object is located.
The force of gravity between two objects is directly proportional to the product of their masses and inversely proportional to the square of the distance between them.
On Earth, the force of gravity is constantly pulling objects towards its centre. This force is what we experience as weight.
If an object was moved to a planet close to the sun, its weight would change depending on the mass of the planet.
If the planet close to the sun has a greater mass than Earth, the gravitational force acting on the object will be greater, and hence the object will weigh more.
If the planet close to the sun has a smaller mass than Earth, the gravitational force acting on the object will be smaller, and hence the object will weigh less.
In conclusion, the weight of an object on a planet close to the sun depends on the mass of the planet. If the planet has a greater mass than Earth, the object will weigh more. If the planet has a smaller mass than Earth, the object will weigh less.