Confusion about programming Logic

So it doesn't drive anything - its high impedance (floating). Outputs are always driven hard to 0V or to 5V (hard means with about 40 ohms of internal resistance).
An input has an impedance somewhere up in the 1000000 megaohms region which is not the same thing at all, meaning the pin is basically a voltage sniffer.