Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
2いいね 21 views回再生

Python exploration #1 - PYTHON ELEMENTARY

This is my first time really trying to use python and learn what it is. So I definitely would recommend take my information with a grain of salt because I am a beginner still figuring things out.
The first step was to download python, I thought I had everything figured out out with just the idle and the python launcher. Started to learn some things with the idle version.

Example :
Print (“hello world”)
x= input (“text”)
y= input (“text 2”)
z= input (“text 3”)
G= (x+y+z)
Print (G)
Print (“let’s start the process”)

You can basically keep going with this, I had left off on the pyramid patterns and palindromes from another video. After playing with the idle version I still knew I did not know anything. I was barely at the beginning not even just one step. So played around with the files and re downloaded certificates just in case I had missed anything.
Something felt like it was missing eventually I figured out that you also have to be able to run python… python was not running…
After some time and research and figured out the videos I was watching were for the windows version which seems to have one singular number or letter as a change.
As I was searching my terminal which is command prompt in windows, finally got python running.
Python3 —version (MacBook Air)
Python —version (windows) -not really forsure take with grain of salt.
Now that python was running I downloaded visual studio, got the extension through extensions. Everything seemed to be running smooth until I was testing the basics.
My problem as if right now is only the “if”, “elif”, and “else” statements. Maybe there is also a slight change but if python is basically the same throughout all operating systems should I be running into these problems. Or since I’m running the MacBook operation system just like running the terminal is there that slight change. Not forsure I would think no.

The other problem I was having was passing a value with a function. However, I figured that one out I had forgot to actually put the value in the function and never passed in the value either. Other than that I’m doing the basics of basics until something happens and this is the little process so far.something different to bring to the table and I feel that this is a good start on python.

I also am having problems with putting “if” in a function for some reason it uses the integer to pass through regardless, or brings the syntax.
Doesn’t print the actual answer within the ifs, elifs, and else’s. Will stay updated on this hope you enjoyed the starter pack I guess.

コメント