I know we have to use the timer node for that, but i am still not sure what line of code i have to write in it make it wotk like i mentioned it above.
Also ,new to godot here
The following resource provides an example of exactly what you're after and more generally kidscancode provide a great set of tutorials for anyone new . https://kidscancode.org/godot_recipes/ui/labels/