Category: Language
Part 2 Available in this link: Link Python usually uses an interpreter. The compiler are a little…
Java variables, Array, 2d array Method Different method invoking and return type Class – Class is actually…
package com.zakilive.ooplearningbyme; class Employee{ int salary; int eid; static String ceo; //if i don’t made the static…
Problem: Only Positive Numbers positiveFunc([-5,3,-1,101]) def positiveFunc(list_s): return [i for i in list_s if i>0]
phone_numbers={“John Smith”:”+37682″,”Marry Simpsons”:”+42399″} for pair in phone_numbers.items(): print(“{} has a phone number and it is {}”.format(pair[0],pair[1])) Same…
colors = [11, 34.1, 98.2, 43, 45.1, 54, 54] for items in colors: if isinstance(items,int): print(items)
Recent Comments