Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pthyon 3 question (newb)
#1
This is something from my python 3 lessons at CodeAcademy. As you can see there are two print functions. But if you remove the indentation from the second print function, it swaps the order in which they appear on the console. So if you remove the indent, then suddenly "This is your desktop" appears on top, instead of the other one. I was thinking it always read top to bottom. Why does python not print these two print functions in order from top to bottom?

def about_this_computer():
  print("This computer is runnong on Whackintosh versio Everest Puma")
print("This is your desktop")
  
about_this_computer()
Reply


Messages In This Thread
Pthyon 3 question (newb) - by bennylava - Feb-01-2019, 01:00 AM
RE: Pthyon 3 question (newb) - by mntfr - Feb-01-2019, 01:05 AM
RE: Pthyon 3 question (newb) - by bennylava - Feb-01-2019, 03:49 AM
RE: Pthyon 3 question (newb) - by nilamo - Feb-01-2019, 04:27 AM
RE: Pthyon 3 question (newb) - by bennylava - Feb-11-2019, 09:23 AM
RE: Pthyon 3 question (newb) - by buran - Feb-11-2019, 09:39 AM
RE: Pthyon 3 question (newb) - by nilamo - Feb-11-2019, 06:48 PM
RE: Pthyon 3 question (newb) - by bennylava - Feb-14-2019, 05:54 AM
RE: Pthyon 3 question (newb) - by bennylava - Feb-24-2019, 07:37 PM
RE: Pthyon 3 question (newb) - by nilamo - Feb-26-2019, 06:08 PM
RE: Pthyon 3 question (newb) - by bennylava - Feb-28-2019, 04:52 PM
RE: Pthyon 3 question (newb) - by buran - Feb-28-2019, 06:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NameError issue with daughter's newb code MrGonk 2 1,406 Sep-16-2021, 01:29 PM
Last Post: BashBedlam
  Simple newb string question Involute 2 2,169 Sep-08-2019, 12:50 AM
Last Post: Involute
  please help this newb install pygame iofhua 7 5,849 May-15-2019, 01:09 PM
Last Post: buran
  Newb question: Debugging + Linting Python in Visual Studio Code Drone4four 1 2,390 Apr-15-2019, 06:19 AM
Last Post: perfringo
  Newb question about %02d %04d bennylava 30 19,156 Mar-05-2019, 11:23 PM
Last Post: snippsat
  newb selfie PatM 5 3,547 Feb-19-2019, 12:20 AM
Last Post: snippsat
  Complete NEWB and openpyxl project Netopia 44 16,886 Jan-18-2019, 08:15 PM
Last Post: Netopia
  Newb Question - Threading in Crons vvarrior 2 2,730 Jul-20-2018, 08:12 PM
Last Post: vvarrior
  Matt's newb question 1 MattSS102 1 2,670 Aug-28-2017, 03:27 AM
Last Post: BerlingSwe
  Newb: Simple Explicit Formula Duplicitous 1 3,108 May-05-2017, 07:03 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020