Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Z3/Z3Clarifications
(view source)
Revision as of 12:27, 25 August 2016
8 bytes added
,
12:27, 25 August 2016
→Z3 Clarifications
Line 6:
Line 6:
List clarifications required on Z3
List clarifications required on Z3
−
How do we get a subset of a string value without using loop
+
How do we get a subset of a string value without using loop
−
+
Ans:
−
Ans:
+
word = "CORPORATION";
−
+
vowels ="AEIOU";
−
word = "CORPORATION";
+
vowelsarray=vowels.split("");
−
vowels ="AEIOU";
+
wordletterswithoutvowels=word.split("").filter((x)=>!x.isin(vowelsarray));
−
vowelsarray=vowels.split("");
+
OR
−
wordletterswithoutvowels=word.split("").filter((x)=>!x.isin(vowelsarray));
+
IsNotAVowel:=!x.isin(vowelsarray);
−
OR
+
word.split("").filter(IsNotAVowel);
−
IsNotAVowel:=!x.isin(vowelsarray);
+
OR
−
word.split("").filter(IsNotAVowel);
+
IsNotAVowel:=!x.isin("AEIOU".split(""));
−
OR
+
word.split("").filter(IsNotAVowel);
−
IsNotAVowel:=!x.isin("AEIOU".split(""));
+
Result => CRPRTN
−
word.split("").filter(IsNotAVowel);
−
−
Result => CRPRTN
Abin
writer
5,435
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Community portal
Current events
Recent changes
Help
Tools
ZCubes Web Platform
Printable version