Kurse
Kurse
Code Compiler
Code Compiler
Diskutieren
Teams
Anmelden
Registrieren
Menu
F&A Diskussionen
Suchen
Suchen
Eine Frage stellen
Eine Frage stellen
a=[] a.append(a) print(a) out:[[...]]
lists
python
4 Stimmen
8 Antworten
11th Sep 2021, 2:37 PM
Arsalan [Inactive]
a=[1,2,3,4,5] for i in a: a.remove(i) print(a)
python3
1 Stimme
19 Antworten
22nd May 2020, 6:20 PM
Levi
a=[1,2,3,4,1] for n in a: a[n]=0 print(a)
python3
1 Stimme
6 Antworten
5th Aug 2018, 6:09 AM
Mohd Naved Ansari
a = 2 for i in range(-5,5): a=a+a print(a)
python
7 Stimmen
5 Antworten
20th Mar 2021, 6:33 AM
Lazizbek
a=[1,2,3,4,5] for i in a: a.remove(i) print(a)
@python
0 Stimmen
1 Antwort
14th Oct 2024, 12:54 PM
Palagani akhila gowd
a=(lambda x:x*(x+1))_ print(a) How do I call 6 to the above code?
lambdas
python
-1 Stimme
10 Antworten
25th Sep 2016, 4:03 AM
Shankar Balasubramaniam
a=input("Enter one strings:") print(a) b=input("input other string:") print(b) c=(a+b) print(c)
python
strings
0 Stimmen
3 Antworten
27th Jul 2019, 9:02 AM
Dhyey Badheka
a = [i for i in range(8)] print(a) for i in a: a.remove(i) print(i) print (sum(a))
python
python3
1 Stimme
3 Antworten
17th Jun 2019, 7:28 AM
Praveen E
What will be the output of this code? a=float("123"*int(input("Enter a number:"))) Enter a number:2 print(a)
python
pythonprogramming
sololearn
-5 Stimmen
3 Antworten
9th May 2020, 9:41 AM
Rohit tahiliani
why i us: a=float(input()) a=a+10 print(a) is correct but when i use a=a+10 a=float(input()) print=(a) is wrong. I need a answer
python
0 Stimmen
4 Antworten
18th Oct 2024, 2:15 PM
Dang Yuh
Float * int (mistake): a=179*1.13 print(a) Output = 202,269999999999999 But right answer is 202.27 What is the mistake in python???
python
0 Stimmen
5 Antworten
18th Oct 2016, 9:40 AM
Konstantin Markov
how to make sure that the output is only one row for example output is only print(a)
average
python
0 Stimmen
1 Antwort
16th Sep 2016, 5:50 PM
Tjomq Jazz
i//2 == 20 then i = 40 ,i//2 = 40/2 = 20 Why the answer print(a) = [20] is incorrect ?
python3
1 Stimme
4 Antworten
13th Oct 2020, 5:09 AM
Rajan K
>>>a=10 >>>while a<=25: a+=2 print(a) >>>12,......26 Why this code print up to 26 when it is less than 25? >>>a = 10 >>>while a <= 25: print(a) a+=2 >>>12,.......24 What is the difference between these two code & why they give different result?
python
while
0 Stimmen
3 Antworten
1st Jul 2016, 3:38 AM
Romario Kisku
a = 6 while a >=2: print(a) a -= 1 b = 6 while True: print(b) b -=1 if b <=2: break
python3
0 Stimmen
2 Antworten
30th Oct 2020, 12:49 AM
Sushil Mundhra
So I tried a = "a" while a <= "e": print(a) a = "a" + "1" print("Finished") and it said time limit exceeded
loops
python
0 Stimmen
5 Antworten
7th Sep 2016, 10:49 PM
Tendai25
I write the python on IDLE like this (testing) >> a =("Hello World") >> print(a) i save it with ".py" why not work?
python3
0 Stimmen
5 Antworten
3rd Jul 2017, 12:57 PM
Fariz Duta Nugraha
Function output
def
func(a)
func(x):
print(a)
x=1
0 Stimmen
5 Antworten
12th Feb 2020, 8:35 PM
Sinan
a = [1,1,2,3,5,8] for a[1] in a: pass print(a) result :[1, 8, 2, 3, 5, 8] want to know how index-1 is replaced as 8.
python
2 Stimmen
3 Antworten
22nd Nov 2019, 6:03 AM
Sreeraj V A
Eine Frage stellen
Eine Frage stellen
Eine Frage stellen
Eine Frage stellen
Heute heiß
Help please?
4 Votes
How to get better with problem-solving and programming
1 Votes
Odd even threads without condition variable
0 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
Game development
0 Votes
Write a program to find the strings are in isogram or not
0 Votes
Ruby programming?
3 Votes