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.
(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?
ChromeOS. But the book says Python on Linux.
My url looks like this on the chromeOS,
chrome-extension://nkoccljplnhpfnfiajclkommnmllphnl/html/crosh.html
(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.
Okay. I'll try that. Checking it online.
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']
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!")
Try typing python3
or just python
to enter the Python interactive shell. Once you're in, you can run Python commands directly. If you need to exit, just type exit()
or press Ctrl+D
. For basic Linux commands, you can use ls
to list files, cd
to change directories, and pwd
to see your current directory.
*** FYI ***
VSCode is available for ChromeOS. See
VSCode