Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python on Linux
#1
Hopefully someone can help me. I'm on Python now command line. I think

crosh>The only command I know is help. So far my ping address is to host gateway. And that is the only information I can get. Reading the book, Third Edition by Eric Matthes, Copyright 2023. Python crash course.

I know I'm in the shell area. Command line area.

By default the book says Python is installed on most Linux system.

Any other command to this command line? Thanks for your inputs.
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.
Reply
#2
(May-16-2024, 07:35 AM)ebn852_pan Wrote: crosh>
This looks like the prompt on a ChromeOS' crosh terminal, which as far as I understand is not exactly similar to a linux terminal. Are you in ChromeOS or in Linux?
« We can solve any problem by introducing an extra level of indirection »
Reply
#3
ChromeOS. But the book says Python on Linux.

My url looks like this on the chromeOS,

chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.
Reply
#4
(May-16-2024, 09:17 AM)ebn852_pan Wrote: ChromeOS. But the book says Python on Linux.
I don't know chromebooks at all but there are a lot of tutorials online about using Python on chromebook. It seems that you only need to enable Linux on the Chromebook and open a linux terminal and type python3. From what I see, these tutorials dont use the 'crosh' terminal. So check up one of the tutorials.
« We can solve any problem by introducing an extra level of indirection »
Reply
#5
Okay. I'll try that. Checking it online.
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.
Reply
#6
programiz has an online compiler and interpreter. You can practice on that. It works. Chrome and 64 bit cpu processor, Linux

Thanks!

#code on list
players=['charles','martina','michael','florence','eli']
print(players[1:4])
output of the program is...

['martina', 'michael', 'florence']
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.
Reply
#7
Alice,David, that waas a great trick!
I can't wait to see your next trick, Alice,David.

Carolina, that waas a great trick!
I can't wait to see your next trick, Carolina.

Thank you everyone, that was a great magic show!

output:

#magicians
magician = ['alice,''david','carolina']
for magician in magician:
    print(f"{magician.title()}, that waas a great trick!")
    print(f"I can't wait to see your next trick, {magician.title()}.\n")
print("Thank you everyone, that was a great magic show!")
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pandas + PIL on Linux (Python 32) Clives 3 2,282 Mar-25-2022, 07:46 PM
Last Post: snippsat
  how to install python on linux manchun 5 4,661 Mar-01-2018, 09:09 AM
Last Post: wavic
  many versions on python on linux Skaperen 8 5,913 Oct-17-2017, 02:22 AM
Last Post: Skaperen
  Which is best for python?Linux or windows? PySoD 21 33,424 Jun-19-2017, 04:52 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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