Category: Python

03
Nov
2019

Working with lists and append

Question:Append the first item of weekend to workdays   workdays = [“Mon”, “Tue”, “Wed”, “Thu”, “Fri”] weekend…

03
Nov
2019

Dictionary in Python

day_temperatures ={‘morning’:(1.1,2.2,3.4),’noon’:(2.25,4.5,6.7),’evening’:(3.3,4.5,6.5)} Assign a dictionary variable day_temperatures.The dictionary should contain three keys ‘morning’,’noon’and evening and each key…

03
Nov
2019

Difference between tuple and list in python

monday_temperatures=(1,4,5) >>> monday_temperatures2=[1,4,5] >>> monday_temperatures2.append(7) >>> monday_temperatures2 [1, 4, 5, 7] >>> monday_temperatures2.remove(4) >>> monday_temperatures2 [1, 5,…

27
Oct
2019

OOP concept clearings from some MOOC courses

Code: Student.java   class Student{     //variable declaration     int id;     String name;     String gender;     //method deinitions     boolean updateProfile(String newName){         name=newName;         return true;     } }   StudentTest.java class StudentTest{…

27
Oct
2019

Started My Java Revise and Python Learning

Need to revise everything.

15
Jun
2017

Why Python is Not a Good OOP Language

Anonymous Answered Feb 22 I’ll go against popular opinion. I started with Python. I did all my…