You ca achieve that with various methods, one is to have a tool changing machine, but the price is high, another one is to use a cyclope or diamond printing head, with the problems they bring, because nothing comes without problems, aother one is to use a dual nozzle system like Chimera if you print low temperatures, below 240C at which the teflon heatbreak sleeve still resists without cracking into nasty chemicals in fumes.
I am doing far beyond what you see, but to do that you need some specialised tools, like dual filament water cooled heasink, two high performance heatblocks with PT1000 thermistors, adeguate heater cartdridge in ceramics capable to go up to 600C, and a lot of firmware workaround, and than you can play with multimaterials printing that have high differences in accepted temperatures, and you can do some whacky things like I do.