Quantcast
Channel: Python 3.7 - Beginner loop and list item help
Browsing all 15 articles
Browse latest View live

Python 3.7 - Beginner loop and list item help

@Paul41 wrote: I’m just learning python and working with lists and some loops. In terms of debugging my code I was trying to figure out what list item would be present and to return it. The code is...

View Article



Image may be NSFW.
Clik here to view.

Python 3.7 - Beginner loop and list item help

@ArielLeslie wrote: I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line...

View Article

Python 3.7 - Beginner loop and list item help

@Code-Ex wrote: you use index position Read full topic

View Article

Python 3.7 - Beginner loop and list item help

@Code-Ex wrote: example: Strings = ‘test’ List=[‘1’, ‘a’, ‘e’] for Letter in String: print(Letter[1]) Read full topic

View Article

Python 3.7 - Beginner loop and list item help

@Paul41 wrote: Thanks will use formatter next time, because it’s in a loop, I want to figure out what iteration of the loop so don’t want to simply enter a specific index value such as 1. I am not...

View Article


Python 3.7 - Beginner loop and list item help

@harshmangal wrote: String = ‘test’ List = [‘1’, ‘a’, ‘e’] for Letter in String: if Letter in List: print(list) You didn’t took care of case of letters Hope this helps. Read full topic

View Article

Image may be NSFW.
Clik here to view.

Python 3.7 - Beginner loop and list item help

@programmerguy234 wrote: Hi! I found a good code example on this post, python for loop. fruits = ["apricot", "blueberry", "strawberry"] for x in fruits: print(x) #Output apricot blueberry strawberry I...

View Article

Python 3.7 - Beginner loop and list item help

I’m just learning python and working with lists and some loops. In terms of debugging my code I was trying to figure out what list item would be present and to return it. The code is checking each...

View Article


Image may be NSFW.
Clik here to view.

Python 3.7 - Beginner loop and list item help

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to...

View Article


Python 3.7 - Beginner loop and list item help

you use index position Read full topic

View Article

Python 3.7 - Beginner loop and list item help

example: Strings = ‘test’ List=[‘1’, ‘a’, ‘e’] for Letter in String: print(Letter[1]) Read full topic

View Article

Python 3.7 - Beginner loop and list item help

Thanks will use formatter next time, because it’s in a loop, I want to figure out what iteration of the loop so don’t want to simply enter a specific index value such as 1. I am not sure if there is...

View Article

Python 3.7 - Beginner loop and list item help

String = ‘test’ List = [‘1’, ‘a’, ‘e’] for Letter in String: if Letter in List: print(list) You didn’t took care of case of letters Hope this helps. Read full topic

View Article


Image may be NSFW.
Clik here to view.

Python 3.7 - Beginner loop and list item help

Hi! I found a good code example on this post, python for loop. fruits = ["apricot", "blueberry", "strawberry"] for x in fruits: print(x) #Output apricot blueberry strawberry I hope this helps! Read...

View Article

Python 3.7 - Beginner loop and list item help

Read full topic

View Article

Browsing all 15 articles
Browse latest View live


Latest Images