+ 2

x = 1 while x < 10: if x%2 == 0: print(str(x) + "hallo") else: print(str(x) + "world") x += 1

Brother and sister help this programming help error

15th Aug 2020, 2:46 AM
Hacker Tamil Tamila
Hacker Tamil Tamila - avatar
2 Antworten
0
Here is answer, did you meant that ? x = 1 while x < 10: if x % 2 == 0: print(str(x) + "hallo") else: print(str(x) + "world") x += 1
15th Aug 2020, 3:00 AM
Agt Reda
Agt Reda - avatar
0
Hey Hacker Tamil Tamila Your Logic Is Right But You Performed Indentation Errors In Your Code And Agt Reda Provided You The Solution Of Your Query.
15th Aug 2020, 3:54 AM
Rahul Saxena
Rahul Saxena - avatar