Комментарии:
Y r we using or during the comparison
ОтветитьThanks for teaching me, Sir. Your channel is incredible and fun to watch and learn.
Ответитьlanguage = ['python','java','swift','c','c++']
new_language = [ ]
for i in language:
if i == "swift" or i == 'c++':
continue
else:
new_language.append(i)
new_language will be ['python', 'java', 'c']
languages=("Python" , "java" , "Swift" ,"C","C++")
for language in languages:
if language=="Swift" or language=="C":
continue
print(language)
thank you for this video it was helpful :)
Ответитьlanguages=["c++","c","phyton","swift","rust"]
for language in languages:
if language == "swift" or language == "c++":
continue
print(language)
THANK YOU SIR
HERE IS THE CODING TASK
languages = ["PYTHON","JAVA","SWIFT","C","C++"]
for i in languages:
if i == "C++" or i == "SWIFT" :
continue
print (i)
lang = ['python','java','swift','c','c++']
for i in lang:
if (i==lang[2]) or (i==lang[4]) :
continue
else:
print(i)
languages=["python","java","swift","c","c++"]
print(languages[0,1,3])
Hi, I am loving the course. But this lesson appears to be out of order when I use the playlist to access the programs, it is appearing before lesson 9, instead of after. I am taking notes and practicing every exercise you demonstrate and then I vary my code a bit to see that I understand what you have taught. Thank you for this great series
Ответитьwhere the fuck did the for and in range come from there is no tutorial for that in this series
Ответитьfor languages in ['Python', 'Java', 'Swift', 'C', 'C++']:
if (languages == 'Swift'or languages == 'C++'):
continue
print(languages)
languages = ['python','java','swift','c','c++']
for language in languages:
if language == 'swift' or language == 'c++':
continue
print(language)
languages = ["Python","Java","Swift","C","C++"]
for i in languages:
if i == languages[2] or i == languages[4]:
continue
else:
print(i)
Wait! I'm using your Learn Python app and it is really helpful!
Ответитьlanguages = ["Python", "Java", "Swift", "C", "C++"]
list=[]
for _ in range(len(languages)):
if languages[_] == "Python" or languages[_] == "Java" or languages[_] == "C":
list.append(languages[_])
print(list)
I can't understand this one but how about this :- languages = ["python", "java"', " Swift", "C"', " C++"]
Print(languages [0])
Print(languages [1])
Print(languages [3])