# How can I change the transform by minimal code?

I'm a beginner and I just want to set the location, rotation, and scale of the object. I tried to get code by reverse engineering but when I moved, rotated, and scaled my object I saw complicated code.

if you want to get exact code you shouldn't change transform in view port. when you change the transform in this panel it works:

Location

import bpy

obj = bpy.context.object
obj.location = (0,0,0)


Rotation

import bpy
import math

obj = bpy.context.object

import bpy