Search found 4 matches
- Thu Feb 03, 2022 11:43 pm
- Forum: General Discussion
- Topic: Can str be used as a variable?
- Replies: 2
- Views: 2149
Re: Can str be used as a variable?
Ok, thanks for the clarification Ayuto. That's kind of what I figured.
- Wed Feb 02, 2022 2:37 am
- Forum: General Discussion
- Topic: Can str be used as a variable?
- Replies: 2
- Views: 2149
Can str be used as a variable?
I'm just learning python and I decided to take a beginners online quiz to test myself. One of the questions was this: 8. What is the output of the following code? str = "pynative" print (str[1:3]) A. py B. yn C. pyn D. yna Because of the slice() function the anwer is B. But that's not my q...
- Tue Feb 01, 2022 7:33 am
- Forum: Whatever
- Topic: Just started Python today... first question
- Replies: 2
- Views: 9377
Re: Just started Python today... first question
Ahhh that makes sense! Thanks Articha!
- Tue Feb 01, 2022 3:39 am
- Forum: Whatever
- Topic: Just started Python today... first question
- Replies: 2
- Views: 9377
Just started Python today... first question
Hi all, I was a VB6 programmer about 20 years ago. I'm trying to get back into the fun again. Things have changed a lot. At any rate, my first question is that I wrote an extremely basic first program and saved it to a .py file. The code is as follows: for x in range(0, 150, 1): print("All work...