You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 2 // 2 = 1.0 (Enters the if condition.) [step = 2]
66
-
# number = 1.0
67
-
# 1 % 2 = -1 (if condition failed.)
68
-
# 1 - 1 = 0 (Enters the else condition.) (Goal state reached.) [step = 3]
69
-
# Total number of step = 3.
54
+
return"".join(string) #Finally we'll join the string which will give "1[.]1[.]1[.]1"
55
+
.
56
+
#Initialize empty string
57
+
#For every character in our IP Address, we will check with the condition that if "." is in the address, we'll simply replace with our given value which is "[.]",
58
+
#otherwise, we'll append remaining address. Lastly, we'll simply join all the character in string.
0 commit comments